]> git.lizzy.rs Git - rust.git/commitdiff
tidy
authorDouglas Campos <qmx@qmx.me>
Mon, 16 Jul 2018 13:44:52 +0000 (13:44 +0000)
committerDouglas Campos <qmx@qmx.me>
Thu, 16 Aug 2018 19:20:09 +0000 (19:20 +0000)
src/librustc_resolve/lib.rs

index 292a5825d5d6ec65f70f32b01bae27dc371eb0d1..1dee385b26a68b9688276382cf272ce4181b316a 100644 (file)
@@ -4268,7 +4268,9 @@ fn lookup_import_candidates_from_module<FilterFn>(&mut self,
                             // crate-local absolute paths start with `crate::` in edition 2018
                             // FIXME: may also be stabilized for Rust 2015 (Issues #45477, #44660)
                             if graph_root {
-                                segms.insert(0, ast::PathSegment::from_ident(keywords::Crate.ident()));
+                                segms.insert(
+                                    0, ast::PathSegment::from_ident(keywords::Crate.ident())
+                                );
                             }
                         }
 
@@ -4324,7 +4326,9 @@ fn lookup_import_candidates<FilterFn>(&mut self,
                                           -> Vec<ImportSuggestion>
         where FilterFn: Fn(Def) -> bool
     {
-        self.lookup_import_candidates_from_module(lookup_name, namespace, self.graph_root, true, filter_fn)
+        self.lookup_import_candidates_from_module(
+            lookup_name, namespace, self.graph_root, true, filter_fn
+        )
     }
 
     fn find_module(&mut self,