1
0
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:
Rob Ede 2024-06-09 23:08:20 +01:00
parent 8ebb12b75a
commit 433c926503
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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