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 007e178 commit cb0019fCopy full SHA for cb0019f
src/providers/file/aumap.rs
@@ -193,12 +193,14 @@ where
193
194
fn get(&self, key: K) -> Option<V> {
195
let key = key.into();
196
+ if let Some(val) = self.pending.get(&key) {
197
+ return Some(V::from(*val));
198
+ }
199
self.dirty
200
.iter()
201
.chain(&self.on_disk)
202
.rev()
203
.find_map(|page| page.get(&key))
- .or_else(|| self.pending.get(&key))
204
.copied()
205
.map(V::from)
206
}
0 commit comments