get_mut should return a mutable reference (#338)
This commit is contained in:
parent
ef8cca002a
commit
83147d3530
|
@ -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 a new issue