fix(client): drop unused import/ctor, needless ? (clippy -D warnings)

This commit is contained in:
2026-08-29 08:23:56 +00:00
parent b1529dd195
commit 4a557a0453
2 changed files with 2 additions and 8 deletions
-6
View File
@@ -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 {