Skip to content

Commit dde8b31

Browse files
committed
some changes to get unit tests to pass
1 parent 0672793 commit dde8b31

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ edition = "2021"
1010
anyhow = { version = "1.0.40", default-features = false }
1111
itertools = { version = "0.10.0", default-features = false }
1212
num = { version = "0.4", default-features = false }
13-
plonky2 = { git = "https://github.com/mir-protocol/plonky2.git", default-features = false }
13+
plonky2 = { git = "https://github.com/mir-protocol/plonky2.git" }
1414

1515
[dev-dependencies]
1616
plonky2 = { git = "https://github.com/mir-protocol/plonky2.git", default-features = false, features = ["gate_testing"] }

src/gates/add_many_u32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ impl<F: RichField + Extendable<D>, const D: usize> Gate<F, D> for U32AddManyGate
9292
}
9393

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

src/serialization.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ impl WriteU32 for Vec<u8> {
1414
}
1515
}
1616

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

0 commit comments

Comments
 (0)