aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-03-25 16:13:06 +0000
committerGitHub <[email protected]>2020-03-25 16:13:06 +0000
commit3d38d4dc9445de783d5efbc72fbdceaa094f23c3 (patch)
treedb3fa611d272cee1a0e021256ea0d2fb1350847c /crates/ra_hir_def
parent0f6fb0ec3b5ac5cd4a5e74c74813abec8257868b (diff)
parent07ec31813c70bdf045fc62804e024836809a5593 (diff)
Merge #3723
3723: Fix typo of visibility_of r=edwin0cheng a=edwin0cheng cc @kjeremy Co-authored-by: Edwin Cheng <[email protected]>
Diffstat (limited to 'crates/ra_hir_def')
-rw-r--r--crates/ra_hir_def/src/item_scope.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/item_scope.rs b/crates/ra_hir_def/src/item_scope.rs
index ef1aaba6f..259b9ff03 100644
--- a/crates/ra_hir_def/src/item_scope.rs
+++ b/crates/ra_hir_def/src/item_scope.rs
@@ -68,7 +68,7 @@ impl ItemScope {
68 self.impls.iter().copied() 68 self.impls.iter().copied()
69 } 69 }
70 70
71 pub fn visbility_of(&self, def: ModuleDefId) -> Option<Visibility> { 71 pub fn visibility_of(&self, def: ModuleDefId) -> Option<Visibility> {
72 self.name_of(ItemInNs::Types(def)) 72 self.name_of(ItemInNs::Types(def))
73 .or_else(|| self.name_of(ItemInNs::Values(def))) 73 .or_else(|| self.name_of(ItemInNs::Values(def)))
74 .map(|(_, v)| v) 74 .map(|(_, v)| v)