Skip to content

Commit 5b8a18f

Browse files
committed
fix clippy lints
1 parent 1692d12 commit 5b8a18f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/miri/src/concurrency/data_race.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ impl FrameState {
11651165
} else {
11661166
// This can fail to exist if `race_detecting` was false when the allocation
11671167
// occurred, in which case we can backdate this to the beginning of time.
1168-
let clocks = clocks.entry(local).or_insert_with(Default::default);
1168+
let clocks = clocks.entry(local).or_default();
11691169
clocks.write = thread_clocks.clock[index];
11701170
clocks.write_type = NaWriteType::Write;
11711171
}
@@ -1186,7 +1186,7 @@ impl FrameState {
11861186
// This can fail to exist if `race_detecting` was false when the allocation
11871187
// occurred, in which case we can backdate this to the beginning of time.
11881188
let mut clocks = self.local_clocks.borrow_mut();
1189-
let clocks = clocks.entry(local).or_insert_with(Default::default);
1189+
let clocks = clocks.entry(local).or_default();
11901190
clocks.read = thread_clocks.clock[index];
11911191
}
11921192

0 commit comments

Comments
 (0)