fix lint errors
This commit is contained in:
parent
b06c3e9394
commit
2ffe956be2
|
@ -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);
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue