chore: address Rust 1.76 clippy lints (#3605)

This commit is contained in:
Chethan Rao
2024-02-12 12:36:22 +05:30
committed by GitHub
parent d3fb705ed2
commit c55eb0afca
7 changed files with 34 additions and 23 deletions

View File

@ -109,7 +109,7 @@ where
{
Ok(x) => Ok(x),
Err(mut err) => {
match state
let update_res = state
.process_tracker_update_process_status_by_ids(
pt_batch.trackers.iter().map(|process| process.id.clone()).collect(),
storage::ProcessTrackerUpdate::StatusUpdate {
@ -123,12 +123,14 @@ where
}, |count| {
logger::debug!("Updated status of {count} processes");
Ok(())
}) {
Ok(_) => (),
Err(inner_err) => {
err.extend_one(inner_err);
}
};
});
match update_res {
Ok(_) => (),
Err(inner_err) => {
err.extend_one(inner_err);
}
};
Err(err)
}