From ac5c87f664308eb74e3473c5c9976a83f947fcdf Mon Sep 17 00:00:00 2001 From: Lee Smet Date: Wed, 3 Jul 2024 10:02:03 +0200 Subject: [PATCH] Remove broken IndexMut for RouteList Since it returned a &mut RouteEntry instead of a RouteEntryGuard, items returned by it are not updated, so outright remove it. Signed-off-by: Lee Smet --- mycelium/src/routing_table.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mycelium/src/routing_table.rs b/mycelium/src/routing_table.rs index 06eeaa5..172d2b3 100644 --- a/mycelium/src/routing_table.rs +++ b/mycelium/src/routing_table.rs @@ -114,12 +114,6 @@ impl Index for RouteList { } } -impl IndexMut for RouteList { - fn index_mut(&mut self, index: usize) -> &mut Self::Output { - &mut self.list[index].1 - } -} - pub struct RouteListIter<'a> { route_list: &'a RouteList, idx: usize,