We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cd11cc commit 25e547cCopy full SHA for 25e547c
src/providers/file/aumap.rs
@@ -206,8 +206,13 @@ where
206
}
207
208
fn insert_or_update(&mut self, key: K, val: V) {
209
+ let key = key.into();
210
let val = val.into();
- *self.pending.entry(key.into()).or_insert(val) = val;
211
+ // Check if the value already known
212
+ if self.get(key.into()).map(V::into) == Some(val) {
213
+ return;
214
+ }
215
+ *self.pending.entry(key).or_insert(val) = val;
216
217
218
0 commit comments