mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-27 00:00:24 +02:00
fix: silence clippy::implicit_clone in TypedPath macro expansions (#3663)
This commit is contained in:
@@ -113,6 +113,7 @@ fn expand_named_fields(
|
|||||||
#[automatically_derived]
|
#[automatically_derived]
|
||||||
impl ::std::fmt::Display for #ident {
|
impl ::std::fmt::Display for #ident {
|
||||||
#[allow(clippy::unnecessary_to_owned)]
|
#[allow(clippy::unnecessary_to_owned)]
|
||||||
|
#[allow(clippy::implicit_clone)]
|
||||||
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
||||||
let Self { #(#captures,)* } = self;
|
let Self { #(#captures,)* } = self;
|
||||||
write!(
|
write!(
|
||||||
@@ -218,6 +219,7 @@ fn expand_unnamed_fields(
|
|||||||
#[automatically_derived]
|
#[automatically_derived]
|
||||||
impl ::std::fmt::Display for #ident {
|
impl ::std::fmt::Display for #ident {
|
||||||
#[allow(clippy::unnecessary_to_owned)]
|
#[allow(clippy::unnecessary_to_owned)]
|
||||||
|
#[allow(clippy::implicit_clone)]
|
||||||
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
||||||
let Self { #(#destructure_self)* } = self;
|
let Self { #(#destructure_self)* } = self;
|
||||||
write!(
|
write!(
|
||||||
|
|||||||
Reference in New Issue
Block a user