mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-23 15:51:06 +01:00
chore: address clippy lints
This commit is contained in:
parent
8ebb12b75a
commit
433c926503
@ -214,7 +214,7 @@ impl Cors {
|
|||||||
/// See [`Cors::allowed_methods`] for more info on allowed methods.
|
/// See [`Cors::allowed_methods`] for more info on allowed methods.
|
||||||
pub fn allow_any_method(mut self) -> Cors {
|
pub fn allow_any_method(mut self) -> Cors {
|
||||||
if let Some(cors) = cors(&mut self.inner, &self.error) {
|
if let Some(cors) = cors(&mut self.inner, &self.error) {
|
||||||
cors.allowed_methods = ALL_METHODS_SET.clone();
|
ALL_METHODS_SET.clone_into(&mut cors.allowed_methods);
|
||||||
}
|
}
|
||||||
|
|
||||||
self
|
self
|
||||||
|
@ -138,7 +138,7 @@ impl Limiter {
|
|||||||
let key = key.into();
|
let key = key.into();
|
||||||
let expires = self.period.as_secs();
|
let expires = self.period.as_secs();
|
||||||
|
|
||||||
let mut connection = self.client.get_tokio_connection().await?;
|
let mut connection = self.client.get_multiplexed_tokio_connection().await?;
|
||||||
|
|
||||||
// The seed of this approach is outlined Atul R in a blog post about rate limiting using
|
// The seed of this approach is outlined Atul R in a blog post about rate limiting using
|
||||||
// NodeJS and Redis. For more details, see https://blog.atulr.com/rate-limiter
|
// NodeJS and Redis. For more details, see https://blog.atulr.com/rate-limiter
|
||||||
|
Loading…
Reference in New Issue
Block a user