File tree 1 file changed +2
-2
lines changed
src/tools/miri/src/concurrency
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1165,7 +1165,7 @@ impl FrameState {
1165
1165
} else {
1166
1166
// This can fail to exist if `race_detecting` was false when the allocation
1167
1167
// 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 ( ) ;
1169
1169
clocks. write = thread_clocks. clock [ index] ;
1170
1170
clocks. write_type = NaWriteType :: Write ;
1171
1171
}
@@ -1186,7 +1186,7 @@ impl FrameState {
1186
1186
// This can fail to exist if `race_detecting` was false when the allocation
1187
1187
// occurred, in which case we can backdate this to the beginning of time.
1188
1188
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 ( ) ;
1190
1190
clocks. read = thread_clocks. clock [ index] ;
1191
1191
}
1192
1192
You can’t perform that action at this time.
0 commit comments