mirror of
https://github.com/iluvcapra/bwavfile.git
synced 2026-11-16 00:34:13 +00:00
clippy: Avoid unnecessary conversion
This commit is contained in:
1 parent
22e8dc79d1
commit
ceb8c4371e
1 file changed
+1
-6
+1
-6
@@ -288,12 +288,7 @@ impl<R: Read + Seek> Parser<R> {
|
||||
fn advance(&mut self) -> (Option<Event>, State) {
|
||||
match self.handle_state() {
|
||||
Ok((event, state)) => (event, state),
|
||||
Err(error) => (
|
||||
Some(Event::Failed {
|
||||
error: error.into(),
|
||||
}),
|
||||
State::Error,
|
||||
),
|
||||
Err(error) => (Some(Event::Failed { error }), State::Error),
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user