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
This commit is contained in:
Daniel Mueller 2018-05-08 17:30:31 -07:00 committed by Josh Mcguigan
parent 3cb1bd4b57
commit 047cbc0cab
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ impl<R: Read> Iterator for EventsAndRaw<R> {
type Item = Result<(Event, Vec<u8>), io::Error>;
fn next(&mut self) -> Option<Result<(Event, Vec<u8>), 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