diff options
| author | Ralf Jung <post@ralfj.de> | 2024-09-16 08:32:19 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-09-16 08:32:19 +0200 |
| commit | 5b8a18f9592c84569461dbb6e6638075c9ed826f (patch) | |
| tree | a29d141f732c4873fa081a5e908e5703631106e0 | |
| parent | 1692d12c1c43a14254d697e4b1a4abf94fd732ce (diff) | |
| download | rust-5b8a18f9592c84569461dbb6e6638075c9ed826f.tar.gz rust-5b8a18f9592c84569461dbb6e6638075c9ed826f.zip | |
fix clippy lints
| -rw-r--r-- | src/tools/miri/src/concurrency/data_race.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/miri/src/concurrency/data_race.rs b/src/tools/miri/src/concurrency/data_race.rs index f686b331ad6..b5b43f589f6 100644 --- a/src/tools/miri/src/concurrency/data_race.rs +++ b/src/tools/miri/src/concurrency/data_race.rs @@ -1165,7 +1165,7 @@ impl FrameState { } else { // This can fail to exist if `race_detecting` was false when the allocation // occurred, in which case we can backdate this to the beginning of time. - let clocks = clocks.entry(local).or_insert_with(Default::default); + let clocks = clocks.entry(local).or_default(); clocks.write = thread_clocks.clock[index]; clocks.write_type = NaWriteType::Write; } @@ -1186,7 +1186,7 @@ impl FrameState { // This can fail to exist if `race_detecting` was false when the allocation // occurred, in which case we can backdate this to the beginning of time. let mut clocks = self.local_clocks.borrow_mut(); - let clocks = clocks.entry(local).or_insert_with(Default::default); + let clocks = clocks.entry(local).or_default(); clocks.read = thread_clocks.clock[index]; } |
