diff --git a/src/spanned.rs b/src/spanned.rs index 3318d28..e3c2774 100644 --- a/src/spanned.rs +++ b/src/spanned.rs @@ -65,8 +65,8 @@ impl Spanned { } /// Returns a mutable reference to the contained value. - pub fn get_mut(&self) -> &T { - &self.value + pub fn get_mut(&mut self) -> &mut T { + &mut self.value } }