Skip to content

Commit

Permalink
Merge pull request #2015 from input-output-hk/djo/rust_1.82
Browse files Browse the repository at this point in the history
 Fix clippy warnings from Rust 1.82
  • Loading branch information
Alenar authored Oct 18, 2024
2 parents a3bbf33 + d7e0a06 commit 495f150
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mithril-test-lab/mithril-end-to-end/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mithril-end-to-end"
version = "0.4.40"
version = "0.4.41"
authors = { workspace = true }
edition = { workspace = true }
documentation = { workspace = true }
Expand Down
29 changes: 13 additions & 16 deletions mithril-test-lab/mithril-end-to-end/src/stress_test/entities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,22 +159,19 @@ impl Reporter {
}

pub fn stop(&mut self) {
match &self.current_timing {
Some((phase, instant)) => {
let phase = if self.number_of_clients == 0 {
format!("{phase} - without clients")
} else {
format!("{phase} - with clients")
};
let timing = Timing {
phase: phase.clone(),
duration: instant.elapsed(),
};

self.timings.push(timing);
self.current_timing = None;
}
None => (),
if let Some((phase, instant)) = &self.current_timing {
let phase = if self.number_of_clients == 0 {
format!("{phase} - without clients")
} else {
format!("{phase} - with clients")
};
let timing = Timing {
phase: phase.clone(),
duration: instant.elapsed(),
};

self.timings.push(timing);
self.current_timing = None;
}
}

Expand Down

0 comments on commit 495f150

Please sign in to comment.