aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Fraux <luthaf@luthaf.fr>2019-10-03 17:29:50 +0200
committerAlex Crichton <alex@alexcrichton.com>2019-10-03 10:29:50 -0500
commite457e4eb33232e253866df9e6a736134bad2b38c (patch)
tree06e9c08b34eef306a34eae1b065eb5e16463dc69 /src
parent41dd8e674144f208d36790a781011f9ea63e20f1 (diff)
downloadmilf-rs-e457e4eb33232e253866df9e6a736134bad2b38c.tar.gz
milf-rs-e457e4eb33232e253866df9e6a736134bad2b38c.zip
get_mut should return a mutable reference (#338)
Diffstat (limited to 'src')
-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
}
}