From 240fcdf65b183e64a7dc4f5992c72194226636b7 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Tue, 17 Jul 2018 11:21:26 +0200 Subject: [PATCH] Match ergonomics --- src/librustc_save_analysis/dump_visitor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_save_analysis/dump_visitor.rs b/src/librustc_save_analysis/dump_visitor.rs index 58189ee0a2f10..ac7085a55cfe0 100644 --- a/src/librustc_save_analysis/dump_visitor.rs +++ b/src/librustc_save_analysis/dump_visitor.rs @@ -1243,7 +1243,7 @@ impl<'l, 'tcx: 'l, 'll, O: DumpOutput + 'll> DumpVisitor<'l, 'tcx, 'll, O> { // 'def' and the name here should be a ref to the def in the // trait. for bound in bounds.iter() { - if let ast::GenericBound::Trait(ref trait_ref, _) = *bound { + if let ast::GenericBound::Trait(trait_ref, _) = bound { self.process_path(trait_ref.trait_ref.ref_id, &trait_ref.trait_ref.path) } }