Skip to content

Commit

Permalink
Remove mut when not needed (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
Roughsketch authored and arqunis committed Aug 28, 2017
1 parent 4e360cf commit 26919cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/framework/standard/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl Args {
/// Like [`single`], but doesn't remove the element.
///
/// [`single`]: #method.single
pub fn single_n<T: FromStr>(&mut self) -> Result<T>
pub fn single_n<T: FromStr>(&self) -> Result<T>
where T::Err: StdError + 'static {
if self.delimiter_split.is_empty() {
return Err(Error::Eos);
Expand Down Expand Up @@ -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<T: FromStr>(&mut self) -> Result<T>
pub fn single_quoted_n<T: FromStr>(&self) -> Result<T>
where T::Err: StdError + 'static {
parse_quotes(&self.delimiter_split.get(0).ok_or(Error::Eos)?)
.remove(0)
Expand Down

0 comments on commit 26919cf

Please sign in to comment.