1
0
Fork 0
forked from wry/wry

all: add HashMapExt

This commit is contained in:
Julian Orth 2024-05-08 15:13:21 +02:00
parent 4c0e6d9b51
commit 0d7a07ec40
29 changed files with 99 additions and 69 deletions

View file

@ -15,6 +15,7 @@ use {
bitfield::Bitfield,
buffd::{BufFdIn, BufFdOut, MsgFormatter, MsgParser, OutBuffer, OutBufferSwapchain},
copyhashmap::CopyHashMap,
hash_map_ext::HashMapExt,
stack::Stack,
vec_ext::VecExt,
},
@ -105,7 +106,7 @@ impl TestTransport {
pub fn kill(&self) {
self.outgoing.take();
self.incoming.take();
for (_, object) in self.objects.lock().drain() {
for object in self.objects.lock().drain_values() {
object.on_remove(self);
}
}