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/test.rs | |
| parent | c61e8fd61a6cbdbfc8f1e2e0e6f40d927df8c18f (diff) | |
| download | rust-95f6ea920d56d9f3db52f5fa0a81f0ec4dffde5f.tar.gz rust-95f6ea920d56d9f3db52f5fa0a81f0ec4dffde5f.zip | |
Fix match_ref_pats flagged by Clippy
Diffstat (limited to 'src/libsyntax/test.rs')
| -rw-r--r-- | src/libsyntax/test.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/test.rs b/src/libsyntax/test.rs index 7cd44e5fb4e..3e02476443a 100644 --- a/src/libsyntax/test.rs +++ b/src/libsyntax/test.rs @@ -353,8 +353,8 @@ fn is_test_fn(cx: &TestCtxt, i: &ast::Item) -> bool { let has_test_attr = attr::contains_name(&i.attrs, "test"); fn has_test_signature(i: &ast::Item) -> HasTestSignature { - match &i.node { - &ast::ItemFn(ref decl, _, _, _, ref generics, _) => { + match i.node { + ast::ItemFn(ref decl, _, _, _, ref generics, _) => { let no_output = match decl.output { ast::DefaultReturn(..) => true, ast::Return(ref t) if t.node == ast::TyTup(vec![]) => true, |
