Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Al-Kindi-0 committed Dec 27, 2024
1 parent 02da64e commit 5161284
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ fn main() {
}

#[cfg(not(feature = "std"))]
println!("Proof security: {} bits", conjectured_security_level);
println!("Proof security: {} bits", conjectured_security_level.0);

#[cfg(feature = "std")]
println!("Proof hash: {}", hex::encode(blake3::hash(&proof_bytes).as_bytes()));
Expand Down
2 changes: 1 addition & 1 deletion utils/core/src/serde/byte_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pub trait ByteWriter: Sized {
self.write_u8(0);
self.write(value.to_le_bytes());
} else {
let encoded_bytes = ((value << 1 | 1) << (length - 1)).to_le_bytes();
let encoded_bytes = (((value << 1) | 1) << (length - 1)).to_le_bytes();
self.write_bytes(&encoded_bytes[..length]);
}
}
Expand Down

0 comments on commit 5161284

Please sign in to comment.