aboutsummaryrefslogtreecommitdiff
path: root/src/spanned.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/spanned.rs')
-rw-r--r--src/spanned.rs4
1 files changed, 2 insertions, 2 deletions
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<T> Spanned<T> {
}
/// 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
}
}