diff options
author | Aleksey Kladov <[email protected]> | 2019-11-14 06:24:39 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-14 06:24:39 +0000 |
commit | debf95eb1b79a54ed482ea01f1716e5ff1faf0b6 (patch) | |
tree | ac7371ec65036a4627e760015905c47d215a74da /crates/ra_hir_def | |
parent | b8f62095d6cf07ba521cdb3f7bac147496b313c9 (diff) |
Reduce visibility
Diffstat (limited to 'crates/ra_hir_def')
-rw-r--r-- | crates/ra_hir_def/src/body.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/crates/ra_hir_def/src/body.rs b/crates/ra_hir_def/src/body.rs index ac8f8261b..269501221 100644 --- a/crates/ra_hir_def/src/body.rs +++ b/crates/ra_hir_def/src/body.rs | |||
@@ -26,11 +26,7 @@ impl MacroResolver { | |||
26 | MacroResolver { crate_def_map: db.crate_def_map(module.krate), module } | 26 | MacroResolver { crate_def_map: db.crate_def_map(module.krate), module } |
27 | } | 27 | } |
28 | 28 | ||
29 | pub(crate) fn resolve_path_as_macro( | 29 | fn resolve_path_as_macro(&self, db: &impl DefDatabase2, path: &Path) -> Option<MacroDefId> { |
30 | &self, | ||
31 | db: &impl DefDatabase2, | ||
32 | path: &Path, | ||
33 | ) -> Option<MacroDefId> { | ||
34 | self.crate_def_map.resolve_path(db, self.module.module_id, path).0.get_macros() | 30 | self.crate_def_map.resolve_path(db, self.module.module_id, path).0.get_macros() |
35 | } | 31 | } |
36 | } | 32 | } |