From 06a68a76a2648ed0ce03c2a7318ecdf156044e5a Mon Sep 17 00:00:00 2001 From: Michael Beaumont Date: Wed, 11 Sep 2019 21:04:36 +0200 Subject: [PATCH] Use IndexMap::swap_remove instead of deprecated IndexMap::remove --- src/proto/streams/store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto/streams/store.rs b/src/proto/streams/store.rs index 9beec45..25e62b0 100644 --- a/src/proto/streams/store.rs +++ b/src/proto/streams/store.rs @@ -341,7 +341,7 @@ impl<'a> Ptr<'a> { /// concerned. pub fn unlink(&mut self) { let id = self.key.stream_id; - self.store.ids.remove(&id); + self.store.ids.swap_remove(&id); } }