mirror of
https://github.com/threefoldtech/mycelium.git
synced 2026-10-22 21:51:19 +00:00
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:
1 file changed
-6
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user