Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/completions/attribute/macro_use.rs')
-rw-r--r--crates/ide-completion/src/completions/attribute/macro_use.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide-completion/src/completions/attribute/macro_use.rs b/crates/ide-completion/src/completions/attribute/macro_use.rs
index 0641a4f6c3..136315c61f 100644
--- a/crates/ide-completion/src/completions/attribute/macro_use.rs
+++ b/crates/ide-completion/src/completions/attribute/macro_use.rs
@@ -15,7 +15,7 @@ pub(super) fn complete_macro_use(
let Some(extern_crate) = ctx.sema.to_def(extern_crate) else { return };
let Some(krate) = extern_crate.resolved_crate(ctx.db) else { return };
- for mod_def in krate.root_module().declarations(ctx.db) {
+ for mod_def in krate.root_module(ctx.db).declarations(ctx.db) {
if let ModuleDef::Macro(mac) = mod_def {
let mac_name = mac.name(ctx.db);
let mac_name = mac_name.as_str();