From be5653c4c780850f34433dd31f0ebd0c24306a2a Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 13 Mar 2021 19:48:47 -0800 Subject: [PATCH] Suppress expl_impl_clone_on_copy pedantic lint in custom tokens --- src/custom_keyword.rs | 1 + src/custom_punctuation.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/custom_keyword.rs b/src/custom_keyword.rs index a21842efa9..69d787e54a 100644 --- a/src/custom_keyword.rs +++ b/src/custom_keyword.rs @@ -198,6 +198,7 @@ macro_rules! impl_clone_for_custom_keyword { ($ident:ident) => { impl $crate::__private::Copy for $ident {} + #[allow(clippy::expl_impl_clone_on_copy)] impl $crate::__private::Clone for $ident { fn clone(&self) -> Self { *self diff --git a/src/custom_punctuation.rs b/src/custom_punctuation.rs index 128185da01..118a8453da 100644 --- a/src/custom_punctuation.rs +++ b/src/custom_punctuation.rs @@ -169,6 +169,7 @@ macro_rules! impl_clone_for_custom_punctuation { ($ident:ident, $($tt:tt)+) => { impl $crate::__private::Copy for $ident {} + #[allow(clippy::expl_impl_clone_on_copy)] impl $crate::__private::Clone for $ident { fn clone(&self) -> Self { *self