get_mut should return a mutable reference (#338)
parent
41dd8e6741
commit
e457e4eb33
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue