From 4e4bb17d884c13127bd16a5175cf4ec73edfe84a Mon Sep 17 00:00:00 2001 From: DJO <790521+Alenar@users.noreply.github.com> Date: Fri, 18 Oct 2024 10:20:51 +0200 Subject: [PATCH 1/2] chore: apply rust `1.82` new clippy lints --- .../src/stress_test/entities.rs | 29 +++++++++---------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/mithril-test-lab/mithril-end-to-end/src/stress_test/entities.rs b/mithril-test-lab/mithril-end-to-end/src/stress_test/entities.rs index dfdd0b20604..73ba2e293c9 100644 --- a/mithril-test-lab/mithril-end-to-end/src/stress_test/entities.rs +++ b/mithril-test-lab/mithril-end-to-end/src/stress_test/entities.rs @@ -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; } } From d7e0a06e02e09e3b07808fa4823ebb6baa026cd6 Mon Sep 17 00:00:00 2001 From: DJO <790521+Alenar@users.noreply.github.com> Date: Fri, 18 Oct 2024 10:22:35 +0200 Subject: [PATCH 2/2] chore: upgrade crate versions * mithril-end-to-end from `0.4.40` to `0.4.41` --- Cargo.lock | 2 +- mithril-test-lab/mithril-end-to-end/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index edb0bc877ae..9beb09aa013 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3777,7 +3777,7 @@ dependencies = [ [[package]] name = "mithril-end-to-end" -version = "0.4.40" +version = "0.4.41" dependencies = [ "anyhow", "async-recursion", diff --git a/mithril-test-lab/mithril-end-to-end/Cargo.toml b/mithril-test-lab/mithril-end-to-end/Cargo.toml index d6870f80488..a6eb2eed4c0 100644 --- a/mithril-test-lab/mithril-end-to-end/Cargo.toml +++ b/mithril-test-lab/mithril-end-to-end/Cargo.toml @@ -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 }