about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDouglas Campos <qmx@qmx.me>2018-07-16 13:44:52 +0000
committerDouglas Campos <qmx@qmx.me>2018-08-16 19:20:09 +0000
commit28c5f3ea55e2de735cef32a1ac0d1dc18d926149 (patch)
tree8e98b339ea8e40f4c8279b646ddeb5bdc78e7fd7
parent576b041b19feb277873f3bf41c58ce8c3038a914 (diff)
downloadrust-28c5f3ea55e2de735cef32a1ac0d1dc18d926149.tar.gz
rust-28c5f3ea55e2de735cef32a1ac0d1dc18d926149.zip
tidy
-rw-r--r--src/librustc_resolve/lib.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/librustc_resolve/lib.rs b/src/librustc_resolve/lib.rs
index 292a5825d5d..1dee385b26a 100644
--- a/src/librustc_resolve/lib.rs
+++ b/src/librustc_resolve/lib.rs
@@ -4268,7 +4268,9 @@ impl<'a, 'crateloader: 'a> Resolver<'a, 'crateloader> {
                             // 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 @@ impl<'a, 'crateloader: 'a> Resolver<'a, 'crateloader> {
                                           -> 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,