1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 10:27:42 +02:00

chore: address clippy lints

This commit is contained in:
Rob Ede
2024-06-09 23:08:20 +01:00
parent 8ebb12b75a
commit 433c926503
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.
pub fn allow_any_method(mut self) -> Cors {
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