From 0ec86568fec3feb3a7cbeac4216bb4ef97389ea9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 26 Nov 2023 03:27:26 +0000 Subject: [PATCH] Format Rust code using rustfmt --- src/timer.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/timer.rs b/src/timer.rs index 626f1864..2cf2728c 100644 --- a/src/timer.rs +++ b/src/timer.rs @@ -96,10 +96,7 @@ struct TimerMap { impl TimerMap { fn insert(&mut self, pop_time: u64, id: u64, addr: Address) { - self.timers - .entry(pop_time) - .or_default() - .push((id, addr)); + self.timers.entry(pop_time).or_default().push((id, addr)); } fn contains(&mut self, pop_time: u64) -> bool {