get_mut should return a mutable reference (#338)

This commit is contained in:
Guillaume Fraux 2019-10-03 17:29:50 +02:00 committed by Alex Crichton
parent ef8cca002a
commit 83147d3530

View file

@ -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
}
}