diff options
author | kazatsuyu <[email protected]> | 2021-01-22 13:52:04 +0000 |
---|---|---|
committer | kazatsuyu <[email protected]> | 2021-01-22 13:52:04 +0000 |
commit | 0fb4544403f67fd4f9046532cff70f776d5ba562 (patch) | |
tree | 686192b1ec0a8b68271eec5034db8887fc29fb87 /crates | |
parent | e52589e3a72ed57d47956d16d90f4b15fc7408f0 (diff) |
cargo fmt
Diffstat (limited to 'crates')
-rw-r--r-- | crates/hir_def/src/nameres/path_resolution.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/hir_def/src/nameres/path_resolution.rs b/crates/hir_def/src/nameres/path_resolution.rs index a6e0f64fc..bb8ccaa9d 100644 --- a/crates/hir_def/src/nameres/path_resolution.rs +++ b/crates/hir_def/src/nameres/path_resolution.rs | |||
@@ -13,8 +13,8 @@ | |||
13 | use std::iter::successors; | 13 | use std::iter::successors; |
14 | 14 | ||
15 | use base_db::Edition; | 15 | use base_db::Edition; |
16 | use hir_expand::name::Name; | ||
17 | use hir_expand::name; | 16 | use hir_expand::name; |
17 | use hir_expand::name::Name; | ||
18 | use test_utils::mark; | 18 | use test_utils::mark; |
19 | 19 | ||
20 | use crate::{ | 20 | use crate::{ |
@@ -65,7 +65,8 @@ impl ResolvePathResult { | |||
65 | impl DefMap { | 65 | impl DefMap { |
66 | pub(super) fn resolve_name_in_extern_prelude(&self, name: &Name) -> PerNs { | 66 | pub(super) fn resolve_name_in_extern_prelude(&self, name: &Name) -> PerNs { |
67 | if name == &name!(self) { | 67 | if name == &name!(self) { |
68 | return PerNs::types(ModuleId { krate: self.krate, local_id: self.root }.into(), | 68 | return PerNs::types( |
69 | ModuleId { krate: self.krate, local_id: self.root }.into(), | ||
69 | Visibility::Public, | 70 | Visibility::Public, |
70 | ); | 71 | ); |
71 | } | 72 | } |