Removed warning of rustc 1.7.0 complaining about E0252. Trait Print has to be public...
[rust-101.git] / solutions / src / list.rs
index 5137555af65eb4ea3797c29e069382631a2606ab..3206982e9de23650084d534107467474105dfad0 100644 (file)
@@ -101,7 +101,7 @@ impl<T> LinkedList<T> {
         }
     }
 
-    pub fn iter_mut(&self) -> IterMut<T> {
+    pub fn iter_mut(&mut self) -> IterMut<T> {
         IterMut { next: self.first, _marker: PhantomData  }
     }
 }