]> git.lizzy.rs Git - rust.git/blobdiff - crates/ide_completion/src/completions/attribute/derive.rs
Merge #11393
[rust.git] / crates / ide_completion / src / completions / attribute / derive.rs
index 5b22408a2cb13831ee9687c66f85b1c38fb43ea3..29fe096e135608fd9c6817a000c5cb4aee92d7f3 100644 (file)
@@ -80,7 +80,7 @@ fn flyimport_derive(acc: &mut Completions, ctx: &CompletionContext) -> Option<()
         return None;
     };
     let potential_import_name = ctx.token.to_string();
-    let module = ctx.scope.module()?;
+    let module = ctx.module?;
     let parent = ctx.token.parent()?;
     let user_input_lowercased = potential_import_name.to_lowercase();
     let import_assets = ImportAssets::for_fuzzy_path(