Skip to content

Commit 95a8e2b

Browse files
committed
Solve clippy
1 parent d61d207 commit 95a8e2b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/generic_log_worker/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ fn serialize_entries(entries: &[(LookupKey, SequenceMetadata)]) -> Vec<u8> {
364364
}
365365

366366
fn deserialize_entries(buf: &[u8]) -> Result<Vec<(LookupKey, SequenceMetadata)>> {
367-
if buf.len() % 32 != 0 {
367+
if !buf.len().is_multiple_of(32) {
368368
return Err("invalid buffer length".into());
369369
}
370370
let mut entries = Vec::with_capacity(buf.len() / 32);

crates/generic_log_worker/src/log_ops.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ pub async fn prove_subtree_consistency(
612612
let proof = tlog_tiles::subtree_consistency_proof(cur_tree_size, m, &hash_reader)?;
613613

614614
// Compute the subtree hash.
615-
let subtree_hash = tlog_tiles::subtree_hash(&m, &hash_reader)?;
615+
let subtree_hash = tlog_tiles::subtree_hash(m, &hash_reader)?;
616616
Ok((proof, subtree_hash))
617617
}
618618

0 commit comments

Comments
 (0)