internal: Enforce Resolver to always have a module scope
This commit is contained in:
@@ -185,7 +185,7 @@ fn import_edits(
|
||||
_ => return None,
|
||||
};
|
||||
let path =
|
||||
ctx.module?.find_use_path_prefixed(ctx.db, item, ctx.config.insert_use.prefix_kind)?;
|
||||
ctx.module.find_use_path_prefixed(ctx.db, item, ctx.config.insert_use.prefix_kind)?;
|
||||
Some((path.len() > 1).then(|| ImportEdit {
|
||||
import: LocatedImport::new(path.clone(), item, item, None),
|
||||
scope: import_scope.clone(),
|
||||
|
||||
Reference in New Issue
Block a user