1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-26 06:57:43 +02:00

refactor: address clippy warnings

This commit is contained in:
Rob Ede
2024-05-06 06:03:44 +01:00
parent bb65628de5
commit c1a6388614
6 changed files with 8 additions and 11 deletions

View File

@ -313,7 +313,8 @@ where
let entry = field_limits
.entry(field.name().to_owned())
.or_insert_with(|| T::limit(field.name()));
limits.field_limit_remaining = entry.to_owned();
limits.field_limit_remaining.clone_from(entry);
T::handle_field(&req, field, &mut limits, &mut state).await?;