Removed warning of rustc 1.7.0 complaining about E0252. Trait Print has to be public...
[rust-101.git] / solutions / src / list.rs
index 180627dcb6df7102484b2e79289937122a026f32..3206982e9de23650084d534107467474105dfad0 100644 (file)
@@ -1,4 +1,3 @@
-
 use std::ptr;
 use std::mem;
 use std::marker::PhantomData;
@@ -102,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  }
     }
 }