From 83147d353033135f3d8320f091ffa0b148b7285d Mon Sep 17 00:00:00 2001 From: Guillaume Fraux Date: Thu, 3 Oct 2019 17:29:50 +0200 Subject: [PATCH] get_mut should return a mutable reference (#338) --- src/spanned.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spanned.rs b/src/spanned.rs index 3318d28..e3c2774 100644 --- a/src/spanned.rs +++ b/src/spanned.rs @@ -65,8 +65,8 @@ impl Spanned { } /// 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 } }