Skip to content
Snippets Groups Projects
Commit 047cbc0c authored by Daniel Mueller's avatar Daniel Mueller Committed by Josh Mcguigan
Browse files

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
parent 3cb1bd4b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment