From 10717541ba8753997304c9eb8b81684ede1b8b4d Mon Sep 17 00:00:00 2001 From: Joshua Colvin Date: Fri, 13 Oct 2023 14:33:23 -0700 Subject: [PATCH 1/2] Make clippy happy --- arbitrator/prover/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arbitrator/prover/src/main.rs b/arbitrator/prover/src/main.rs index f820b03f4f..0a2000fc3e 100644 --- a/arbitrator/prover/src/main.rs +++ b/arbitrator/prover/src/main.rs @@ -385,7 +385,7 @@ fn main() -> Result<()> { sum.count += profile.count; let entry = func_profile .entry((module, func)) - .or_insert_with(SimpleProfile::default); + .or_default(); entry.count += sum.count; entry.total_cycles += sum.total_cycles; entry.local_cycles += profile.local_cycles; From 552283aaa9cf7da501b5aab6e22cdf5ab8a18c2e Mon Sep 17 00:00:00 2001 From: Joshua Colvin Date: Fri, 13 Oct 2023 15:08:56 -0700 Subject: [PATCH 2/2] Make cargo fmt happy --- arbitrator/prover/src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arbitrator/prover/src/main.rs b/arbitrator/prover/src/main.rs index 0a2000fc3e..2c72d0b577 100644 --- a/arbitrator/prover/src/main.rs +++ b/arbitrator/prover/src/main.rs @@ -383,9 +383,7 @@ fn main() -> Result<()> { while let Some((module, func, profile)) = func_stack.pop() { sum.total_cycles += profile.total_cycles; sum.count += profile.count; - let entry = func_profile - .entry((module, func)) - .or_default(); + let entry = func_profile.entry((module, func)).or_default(); entry.count += sum.count; entry.total_cycles += sum.total_cycles; entry.local_cycles += profile.local_cycles;