diff options
| author | Seo Sanghyeon <sanxiyn@gmail.com> | 2015-11-17 23:24:49 +0900 |
|---|---|---|
| committer | Seo Sanghyeon <sanxiyn@gmail.com> | 2015-11-17 23:24:49 +0900 |
| commit | 95f6ea920d56d9f3db52f5fa0a81f0ec4dffde5f (patch) | |
| tree | 9c51568c0bbbab14b8c8b72862128e91210cdda4 /src/libsyntax/ext/deriving/generic | |
| parent | c61e8fd61a6cbdbfc8f1e2e0e6f40d927df8c18f (diff) | |
| download | rust-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.rs | 4 |
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, |
