Skip to content

Commit

Permalink
Remove unused 'mut' qualifier in src/input.rs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
d-e-s-o committed Apr 20, 2018
1 parent 832bfff commit 5c95c22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5c95c22

Please sign in to comment.