about summary refs log tree commit diff
path: root/src/libsyntax/ext/deriving/generic
diff options
context:
space:
mode:
authorSeo Sanghyeon <sanxiyn@gmail.com>2015-11-17 23:24:49 +0900
committerSeo Sanghyeon <sanxiyn@gmail.com>2015-11-17 23:24:49 +0900
commit95f6ea920d56d9f3db52f5fa0a81f0ec4dffde5f (patch)
tree9c51568c0bbbab14b8c8b72862128e91210cdda4 /src/libsyntax/ext/deriving/generic
parentc61e8fd61a6cbdbfc8f1e2e0e6f40d927df8c18f (diff)
downloadrust-95f6ea920d56d9f3db52f5fa0a81f0ec4dffde5f.tar.gz
rust-95f6ea920d56d9f3db52f5fa0a81f0ec4dffde5f.zip
Fix match_ref_pats flagged by Clippy
Diffstat (limited to 'src/libsyntax/ext/deriving/generic')
-rw-r--r--src/libsyntax/ext/deriving/generic/ty.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ext/deriving/generic/ty.rs b/src/libsyntax/ext/deriving/generic/ty.rs
index 9e8e68c0b8c..67826c9c6cd 100644
--- a/src/libsyntax/ext/deriving/generic/ty.rs
+++ b/src/libsyntax/ext/deriving/generic/ty.rs
@@ -242,8 +242,8 @@ impl<'a> LifetimeBounds<'a> {
             cx.lifetime_def(span, cx.ident_of(*lt).name, bounds)
         }).collect();
         let ty_params = self.bounds.iter().map(|t| {
-            match t {
-                &(ref name, ref bounds) => {
+            match *t {
+                (ref name, ref bounds) => {
                     mk_ty_param(cx,
                                 span,
                                 *name,