mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 16:01:04 +01:00
[core] Improve assert failure message for id epoch mismatches. (#7871)
This commit is contained in:
1 parent
92cda27b41
commit
2f890eb9b2
1 file changed
+1
-1
@@ -96,7 +96,7 @@ where
|
||||
let (index, epoch) = id.unzip();
|
||||
match mem::replace(&mut self.map[index as usize], Element::Vacant) {
|
||||
Element::Occupied(value, storage_epoch) => {
|
||||
assert_eq!(epoch, storage_epoch);
|
||||
assert_eq!(epoch, storage_epoch, "id epoch mismatch");
|
||||
value
|
||||
}
|
||||
Element::Vacant => panic!("Cannot remove a vacant resource"),
|
||||
|
||||
Reference in new issue
Block a user