Ignore trivially_copy_pass_by_ref locally only
diff --git a/src/attr.rs b/src/attr.rs
index 04bde46..cad96f7 100644
--- a/src/attr.rs
+++ b/src/attr.rs
@@ -533,6 +533,7 @@
     type Ret = iter::Filter<T::IntoIter, fn(&&Attribute) -> bool>;
 
     fn outer(self) -> Self::Ret {
+        #[cfg_attr(feature = "cargo-clippy", allow(trivially_copy_pass_by_ref))]
         fn is_outer(attr: &&Attribute) -> bool {
             match attr.style {
                 AttrStyle::Outer => true,
@@ -543,6 +544,7 @@
     }
 
     fn inner(self) -> Self::Ret {
+        #[cfg_attr(feature = "cargo-clippy", allow(trivially_copy_pass_by_ref))]
         fn is_inner(attr: &&Attribute) -> bool {
             match attr.style {
                 AttrStyle::Inner(_) => true,
diff --git a/src/lib.rs b/src/lib.rs
index 17396aa..dbba5d0 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -256,7 +256,6 @@
         redundant_closure,
         redundant_field_names,
         too_many_arguments,
-        trivially_copy_pass_by_ref,
     )
 )]
 // Ignored clippy_pedantic lints.
diff --git a/src/token.rs b/src/token.rs
index 9a8f3a8..1d2deaa 100644
--- a/src/token.rs
+++ b/src/token.rs
@@ -272,7 +272,7 @@
             #[cfg(feature = "printing")]
             impl ToTokens for $name {
                 fn to_tokens(&self, tokens: &mut TokenStream) {
-                    printing::keyword($token, &self.span, tokens);
+                    printing::keyword($token, self.span, tokens);
                 }
             }
 
@@ -450,7 +450,7 @@
                 where
                     F: FnOnce(&mut TokenStream),
                 {
-                    printing::delim($token, &self.span, tokens, f);
+                    printing::delim($token, self.span, tokens, f);
                 }
             }
 
@@ -886,11 +886,11 @@
         tokens.append(op);
     }
 
-    pub fn keyword(s: &str, span: &Span, tokens: &mut TokenStream) {
-        tokens.append(Ident::new(s, *span));
+    pub fn keyword(s: &str, span: Span, tokens: &mut TokenStream) {
+        tokens.append(Ident::new(s, span));
     }
 
-    pub fn delim<F>(s: &str, span: &Span, tokens: &mut TokenStream, f: F)
+    pub fn delim<F>(s: &str, span: Span, tokens: &mut TokenStream, f: F)
     where
         F: FnOnce(&mut TokenStream),
     {
@@ -904,7 +904,7 @@
         let mut inner = TokenStream::new();
         f(&mut inner);
         let mut g = Group::new(delim, inner);
-        g.set_span(*span);
+        g.set_span(span);
         tokens.append(g);
     }
 }