From ba321fa90e7b0af48325db887dd7800a9e15b86a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Gonz=C3=A1lez?= <7822554+AlexTMjugador@users.noreply.github.com> Date: Tue, 17 Feb 2026 07:46:33 +0100 Subject: [PATCH] fix: silence `clippy::implicit_clone` in `TypedPath` macro expansions (#3663) --- axum-macros/src/typed_path.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/axum-macros/src/typed_path.rs b/axum-macros/src/typed_path.rs index 19a7461f..1d06dae6 100644 --- a/axum-macros/src/typed_path.rs +++ b/axum-macros/src/typed_path.rs @@ -113,6 +113,7 @@ fn expand_named_fields( #[automatically_derived] impl ::std::fmt::Display for #ident { #[allow(clippy::unnecessary_to_owned)] + #[allow(clippy::implicit_clone)] fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { let Self { #(#captures,)* } = self; write!( @@ -218,6 +219,7 @@ fn expand_unnamed_fields( #[automatically_derived] impl ::std::fmt::Display for #ident { #[allow(clippy::unnecessary_to_owned)] + #[allow(clippy::implicit_clone)] fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { let Self { #(#destructure_self)* } = self; write!(