fix(client): drop unused import/ctor, needless ? (clippy -D warnings)
This commit is contained in:
@@ -80,12 +80,6 @@ impl RetryAfterMiddleware {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
fn with_parts(capacity: usize, ceiling: Duration, now: fn() -> SystemTime) -> Self {
|
||||
let _ = now;
|
||||
Self::with_capacity_and_ceiling(capacity, ceiling)
|
||||
}
|
||||
|
||||
fn record(&self, url: Url, deadline: SystemTime) {
|
||||
let mut deadlines = self.deadlines.lock().unwrap_or_else(|e| e.into_inner());
|
||||
if !deadlines.contains_key(&url) && deadlines.len() >= self.capacity {
|
||||
|
||||
Reference in New Issue
Block a user