Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
qmx committed Aug 16, 2018
1 parent 576b041 commit 28c5f3e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/librustc_resolve/lib.rs
Expand Up @@ -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())
);
}
}

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 28c5f3e

Please sign in to comment.