Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ekrem/ci #8

Merged
merged 7 commits into from
Nov 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
#5 - minor changess
  • Loading branch information
ekrembal committed Nov 28, 2023
commit 19060c7970cc084be29346bd2af96653ff9edb28
6 changes: 6 additions & 0 deletions src/circuit.rs
Original file line number Diff line number Diff line change
@@ -14,6 +14,12 @@ pub struct Circuit {
pub wires: Vec<Wire>,
}

impl Default for Circuit {
fn default() -> Self {
Self::new()
}
}

impl Circuit {
pub fn new() -> Self {
Circuit {
6 changes: 6 additions & 0 deletions src/wire.rs
Original file line number Diff line number Diff line change
@@ -14,6 +14,12 @@ pub struct Wire {
pub selector: Option<bool>,
}

impl Default for Wire {
fn default() -> Self {
Self::new()
}
}

impl Wire {
pub fn new() -> Self {
let mut rng = rand::thread_rng();