Skip to content

Commit

Permalink
some changes to get unit tests to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
kevjue committed May 15, 2023
1 parent 0672793 commit dde8b31
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ edition = "2021"
anyhow = { version = "1.0.40", default-features = false }
itertools = { version = "0.10.0", default-features = false }
num = { version = "0.4", default-features = false }
plonky2 = { git = "https://github.com/mir-protocol/plonky2.git", default-features = false }
plonky2 = { git = "https://github.com/mir-protocol/plonky2.git" }

[dev-dependencies]
plonky2 = { git = "https://github.com/mir-protocol/plonky2.git", default-features = false, features = ["gate_testing"] }
Expand Down
2 changes: 1 addition & 1 deletion src/gates/add_many_u32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl<F: RichField + Extendable<D>, const D: usize> Gate<F, D> for U32AddManyGate
}

fn serialize(&self, dst: &mut Vec<u8>) -> IoResult<()> {
dst.write_usize(self.num_addends);
dst.write_usize(self.num_addends)?;
dst.write_usize(self.num_ops)
}

Expand Down
1 change: 0 additions & 1 deletion src/serialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ impl WriteU32 for Vec<u8> {
}
}

#[cfg(feature = "std")]
pub trait ReadU32 {
fn read_target_u32(&mut self) -> IoResult<U32Target>;
}
Expand Down

0 comments on commit dde8b31

Please sign in to comment.