style(lib): address clippy code style warnings
* Remove unnecessary return statements. * Combine identical `match` arms. * Collapse nested conditional. * Use `assert_ne` where applicable. * Lifetime elision.
This commit is contained in:
committed by
Sean McArthur
parent
5d19ef88b4
commit
1059eb349a
@@ -426,7 +426,7 @@ impl<S, B> Server<S, B>
|
||||
let wait = WaitUntilZero { info: info.clone() };
|
||||
match core.run(wait.select(timeout)) {
|
||||
Ok(_) => Ok(()),
|
||||
Err((e, _)) => return Err(e.into())
|
||||
Err((e, _)) => Err(e.into())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user