fix: address review comments

Signed-off-by: Brandon H. Gomes <bhgomes@pm.me>
This commit is contained in:
Brandon H. Gomes 2022-11-15 01:52:27 -05:00
parent 9431fd7448
commit 289498e854
No known key found for this signature in database
GPG Key ID: 773D44E6A904B222
2 changed files with 4 additions and 1 deletions

View File

@ -18,6 +18,7 @@ std = ["anyhow/std", "rand/std"]
timing = ["std"]
[dependencies]
ahash = { version = "0.8.2", default-features = false, features = ["compile-time-rng"] }
anyhow = { version = "1.0.40", default-features = false }
derivative = { version = "2.2.0", default-features = false, features = ["use_core"] }
hashbrown = { version = "0.12.3", default-features = false, features = ["ahash", "serde"] }

View File

@ -105,7 +105,9 @@ impl<F: RichField + Extendable<D>, C: GenericConfig<D, F = F>, const D: usize>
pub fn to_bytes(&self) -> Vec<u8> {
let mut buffer = Vec::new();
let _ = buffer.write_proof_with_public_inputs(self);
buffer
.write_proof_with_public_inputs(self)
.expect("Writing to a byte-vector cannot fail.");
buffer
}