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 5bdf8ae commit 8911381Copy full SHA for 8911381
src/lib.rs
@@ -835,9 +835,9 @@ mod test {
835
836
#[test]
837
fn test_duplicate_clean() {
838
- let mut storage: Storage<u64,u64,X> = Storage::new();
+ let mut storage: Storage<u64, u64, X> = Storage::new();
839
840
- storage.add(X(0,0));
+ storage.add(X(0, 0));
841
842
storage.entry(&ID.chunk(0).item(0));
843
storage.remove(&ID.chunk(0).item(0), std::mem::drop);
src/types/storage.rs
@@ -235,6 +235,7 @@ where
235
}
236
237
self.dirty.sort_unstable();
238
+ self.dirty.dedup();
239
240
for idx in self.dirty.iter().rev() {
241
if !self.chunks[*idx].is_empty() {
0 commit comments