Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Clippy
run: cargo clippy -- -D warnings
- name: Build
run: cargo build --verbose
- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion crates/generic_log_worker/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ fn serialize_entries(entries: &[(LookupKey, SequenceMetadata)]) -> Vec<u8> {
}

fn deserialize_entries(buf: &[u8]) -> Result<Vec<(LookupKey, SequenceMetadata)>> {
if buf.len() % 32 != 0 {
if !buf.len().is_multiple_of(32) {
return Err("invalid buffer length".into());
}
let mut entries = Vec::with_capacity(buf.len() / 32);
Expand Down
2 changes: 1 addition & 1 deletion crates/generic_log_worker/src/log_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ pub async fn prove_subtree_consistency(
let proof = tlog_tiles::subtree_consistency_proof(cur_tree_size, m, &hash_reader)?;

// Compute the subtree hash.
let subtree_hash = tlog_tiles::subtree_hash(&m, &hash_reader)?;
let subtree_hash = tlog_tiles::subtree_hash(m, &hash_reader)?;
Ok((proof, subtree_hash))
}

Expand Down