From e457e4eb33232e253866df9e6a736134bad2b38c Mon Sep 17 00:00:00 2001 From: Guillaume Fraux Date: Thu, 3 Oct 2019 17:29:50 +0200 Subject: 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 } } -- cgit v1.2.3