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 <lee.smet@hotmail.com>
This commit is contained in:
Lee Smet committed 2024-07-03 10:02:03 +02:00
1 parent f2198ee116
commit ac5c87f664
1 file changed
-6
-6
View File
@@ -114,12 +114,6 @@ impl Index<usize> for RouteList {
}
}
impl IndexMut<usize> 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,