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