From 047cbc0cabf51690917e6a993f3fb553c64151ca Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Tue, 8 May 2018 17:30:31 -0700 Subject: [PATCH] Remove unused 'mut' qualifier in src/input.rs (#143) This change removes an unused 'mut' qualifier of the 'source' variable in src/input.rs. > warning: variable does not need to be mutable > --> src/input.rs:52:13 > | > 52 | let mut source = &mut self.source; > | ----^^^^^^ > | | > | help: remove this `mut` > | > = note: #[warn(unused_mut)] on by default --- src/input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.rs b/src/input.rs index 6f6dd17..5c8ecf4 100644 --- a/src/input.rs +++ b/src/input.rs @@ -49,7 +49,7 @@ impl Iterator for EventsAndRaw { type Item = Result<(Event, Vec), io::Error>; fn next(&mut self) -> Option), io::Error>> { - let mut source = &mut self.source; + let source = &mut self.source; if let Some(c) = self.leftover { // we have a leftover byte, use it