Skip to content

Commit

Permalink
Merge pull request #1921 from OffchainLabs/clippy-fix
Browse files Browse the repository at this point in the history
Make clippy happy
  • Loading branch information
PlasmaPower authored Oct 14, 2023
2 parents 5ae8502 + 552283a commit dbf8331
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arbitrator/prover/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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_insert_with(SimpleProfile::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;
Expand Down

0 comments on commit dbf8331

Please sign in to comment.