mirror of
https://github.com/iluvcapra/bwavfile.git
synced 2025-12-31 08:50:44 +00:00
clippy: Avoid unnecessary conversion
This commit is contained in:
@@ -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