get_mut should return a mutable reference (#338)

master
Guillaume Fraux 2019-10-03 17:29:50 +02:00 committed by Alex Crichton
parent 41dd8e6741
commit e457e4eb33
1 changed files with 2 additions and 2 deletions

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