chore: clippy fixes - allow should_implement_trait and collapse nested if
This commit is contained in:
@@ -16,6 +16,7 @@ impl Backoff {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::should_implement_trait)]
|
||||
pub fn next(&mut self) -> Duration {
|
||||
let next = match self.current {
|
||||
None => self.initial,
|
||||
|
||||
Reference in New Issue
Block a user