]> git.lizzy.rs Git - rust.git/commitdiff
Match ergonomics
authorOliver Schneider <github35764891676564198441@oli-obk.de>
Tue, 17 Jul 2018 09:21:26 +0000 (11:21 +0200)
committerOliver Schneider <github35764891676564198441@oli-obk.de>
Wed, 18 Jul 2018 08:53:10 +0000 (10:53 +0200)
src/librustc_save_analysis/dump_visitor.rs

index 58189ee0a2f100b5ad84c51caaa333b09feaaeb7..ac7085a55cfe04751e62d5edf1d6c790843b7dfe 100644 (file)
@@ -1243,7 +1243,7 @@ fn process_impl_item(&mut self, impl_item: &'l ast::ImplItem, impl_id: DefId) {
                 // '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)
                     }
                 }