Skip to content

Commit

Permalink
Suppress expl_impl_clone_on_copy pedantic lint in custom tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Mar 14, 2021
1 parent 92b1129 commit be5653c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/custom_keyword.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/custom_punctuation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be5653c

Please sign in to comment.