X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/f9c259224010e06892dd3cc91b654965da04e0d2..1e4b318e8e3d22e8044bcb968a087f9f3a793af1:/solutions/src/list.rs?ds=sidebyside diff --git a/solutions/src/list.rs b/solutions/src/list.rs index 5137555..3206982 100644 --- a/solutions/src/list.rs +++ b/solutions/src/list.rs @@ -101,7 +101,7 @@ impl LinkedList { } } - pub fn iter_mut(&self) -> IterMut { + pub fn iter_mut(&mut self) -> IterMut { IterMut { next: self.first, _marker: PhantomData } } }