fix lint errors

This commit is contained in:
MatthieuCoder 2023-02-21 13:37:52 +04:00
parent b06c3e9394
commit 2ffe956be2
2 changed files with 2 additions and 3 deletions

View file

@ -183,7 +183,7 @@ impl Bucket {
return false;
}
if let TimeRemaining::Finished = self.time_remaining() {
if matches!(self.time_remaining(), TimeRemaining::Finished) {
self.remaining.store(self.limit(), Ordering::Relaxed);
self.last_update.set_millis(0);

View file

@ -1,5 +1,4 @@
use anyhow::{bail, Context};
use futures_util::future::FutureExt;
use anyhow::bail;
use hyper::http::{
header::{AUTHORIZATION, CONNECTION, HOST, TRANSFER_ENCODING, UPGRADE},
HeaderValue, Method as HttpMethod, Request, Response, Uri,