Skip to content
This repository has been archived by the owner on Sep 24, 2022. It is now read-only.

Commit

Permalink
get_mut should return a mutable reference (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luthaf authored and alexcrichton committed Oct 3, 2019
1 parent 41dd8e6 commit e457e4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spanned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit e457e4e

Please sign in to comment.