fix: silence clippy::implicit_clone in TypedPath macro expansions (#3663)

This commit is contained in:
Alejandro González
2026-04-03 08:49:48 +02:00
committed by Alice Ryhl
parent 27f4015986
commit 880cc38174
+2
View File
@@ -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!(