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

This commit is contained in:
Alejandro González
2026-02-17 15:46:33 +09:00
committed by GitHub
parent c2b0bc310e
commit e9909fef4d
+2
View File
@@ -118,6 +118,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!(
@@ -223,6 +224,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!(