Skip to content

Commit

Permalink
Merge pull request #179 from benthecarman/fix-clippy
Browse files Browse the repository at this point in the history
Fix clippy warnings in tests
  • Loading branch information
Tibo-lg authored Nov 30, 2023
2 parents 5b5da81 + 430ac24 commit 3c9e023
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dlc-manager/tests/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ macro_rules! receive_loop {
Some(msg) => {
let msg_opt = $rcv_callback(msg);
if let Some(msg) = msg_opt {
#[allow(clippy::redundant_closure_call)]
$msg_callback(&msg);
(&$send).send(Some(msg)).expect("Error sending");
}
Expand Down
1 change: 1 addition & 0 deletions dlc-sled-storage-provider/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ mod tests {
let path = format!("{}{}", "test_files/sleddb/", std::stringify!($name));
{
let storage = SledStorageProvider::new(&path).expect("Error opening sled DB");
#[allow(clippy::redundant_closure_call)]
$body(storage);
}
std::fs::remove_dir_all(path).unwrap();
Expand Down

0 comments on commit 3c9e023

Please sign in to comment.