Fix pinning (#6604)

Remove Deref implementations and add more pass-throughs to the PinnedVec
wrapper.
Warm recyclers
set_pinnable
This commit is contained in:
sakridge
2019-11-07 19:48:33 -08:00
committed by GitHub
parent 80a89b5e6d
commit 8e81bc1b49
15 changed files with 170 additions and 88 deletions

View File

@@ -33,6 +33,11 @@ impl Reset for Packets {
fn reset(&mut self) {
self.packets.resize(0, Packet::default());
}
fn warm(&mut self, size_hint: usize) {
self.packets.set_pinnable();
self.packets.resize(size_hint, Packet::default());
}
}
//auto derive doesn't support large arrays