Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
madadam committed Sep 18, 2023
1 parent 4fd53de commit af5b5e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: sudo apt-get install libfuse-dev

- name: "Run clippy"
run: cargo clippy --all-targets --no-deps
run: cargo clippy --all-targets --no-deps -- -Dwarnings

- name: "Run unit tests"
run: cargo test --lib
Expand Down
2 changes: 1 addition & 1 deletion lib/src/db/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ impl WriteTransaction {
inner: tx,
track_lifetime: Some(track_lifetime),
},
id: id,
id,
#[cfg(test)]
break_on_commit: None,
})
Expand Down
3 changes: 1 addition & 2 deletions lib/src/store/block_expiration_tracker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,6 @@ mod test {

let store = store.clone();
let write_keys = write_keys.clone();
let branch_id = branch_id.clone();

let block: Block = rand::random();
add_block(block.clone(), &write_keys, &branch_id, &store).await;
Expand Down Expand Up @@ -678,7 +677,7 @@ mod test {
.unwrap();

assert!(
(!is_in_db) || (is_in_db && is_in_exp_tracker),
!is_in_db || is_in_exp_tracker,
"is_in_db:{is_in_db:?} is_in_exp_tracker:{is_in_exp_tracker:?}"
);
}
Expand Down

0 comments on commit af5b5e3

Please sign in to comment.