From 26919cf9aad1d7bc5f0f8042b4caf6bfcddbd7d8 Mon Sep 17 00:00:00 2001 From: Maiddog Date: Sun, 27 Aug 2017 20:21:15 -0500 Subject: [PATCH] Remove mut when not needed (#152) --- src/framework/standard/args.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/framework/standard/args.rs b/src/framework/standard/args.rs index 87b3e3796af..f8882af6a5e 100644 --- a/src/framework/standard/args.rs +++ b/src/framework/standard/args.rs @@ -52,7 +52,7 @@ impl Args { /// Like [`single`], but doesn't remove the element. /// /// [`single`]: #method.single - pub fn single_n(&mut self) -> Result + pub fn single_n(&self) -> Result where T::Err: StdError + 'static { if self.delimiter_split.is_empty() { return Err(Error::Eos); @@ -98,7 +98,7 @@ impl Args { /// Like [`single_quoted`], but doesn't remove the element. /// /// [`single_quoted`]: #method.single_quoted - pub fn single_quoted_n(&mut self) -> Result + pub fn single_quoted_n(&self) -> Result where T::Err: StdError + 'static { parse_quotes(&self.delimiter_split.get(0).ok_or(Error::Eos)?) .remove(0)