]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/ext/quote.rs
Fix match_ref_pats flagged by Clippy
[rust.git] / src / libsyntax / ext / quote.rs
index d743a601bbb4b2f23c4cafb3bb19137daeb957ca..5e5b815818161de75828c14193a6c4511d8de809 100644 (file)
@@ -63,9 +63,9 @@ fn to_tokens(&self, cx: &ExtCtxt) -> Vec<TokenTree> {
 
     impl<T: ToTokens> ToTokens for Option<T> {
         fn to_tokens(&self, cx: &ExtCtxt) -> Vec<TokenTree> {
-            match self {
-                &Some(ref t) => t.to_tokens(cx),
-                &None => Vec::new(),
+            match *self {
+                Some(ref t) => t.to_tokens(cx),
+                None => Vec::new(),
             }
         }
     }