diff --git a/glib/src/collections/list.rs b/glib/src/collections/list.rs index 8fff10cc01e7..71bf92b3e933 100644 --- a/glib/src/collections/list.rs +++ b/glib/src/collections/list.rs @@ -658,7 +658,7 @@ pub struct IterMut<'a, T: TransparentPtrType> { impl<'a, T: TransparentPtrType> IterMut<'a, T> { #[inline] - fn new(list: &'a List) -> IterMut<'a, T> { + fn new(list: &'a mut List) -> IterMut<'a, T> { debug_assert_eq!( mem::size_of::(), mem::size_of::<::GlibType>() diff --git a/glib/src/collections/slist.rs b/glib/src/collections/slist.rs index 4fa8fbf0ec6f..70f013b202cd 100644 --- a/glib/src/collections/slist.rs +++ b/glib/src/collections/slist.rs @@ -652,7 +652,7 @@ pub struct IterMut<'a, T: TransparentPtrType> { impl<'a, T: TransparentPtrType> IterMut<'a, T> { #[inline] - fn new(list: &'a SList) -> IterMut<'a, T> { + fn new(list: &'a mut SList) -> IterMut<'a, T> { debug_assert_eq!( mem::size_of::(), mem::size_of::<::GlibType>()