create some more compelling examples
This commit is contained in:
1 parent
0dc602eb32
commit
292b3367dd
6 files changed
+203
-8
No files matched your search
@@ -258,6 +258,7 @@ impl MemoryLocation {
|
||||
let old = self.data.borrow_mut().take();
|
||||
#[cfg(any(debug_assertions, feature = "check_generation"))]
|
||||
if old.is_some() {
|
||||
drop(old);
|
||||
let new_generation = self.generation.get() + 1;
|
||||
self.generation.set(new_generation);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user