Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide_assists/src/handlers/expand_glob_import.rs')
| -rw-r--r-- | crates/ide_assists/src/handlers/expand_glob_import.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide_assists/src/handlers/expand_glob_import.rs b/crates/ide_assists/src/handlers/expand_glob_import.rs index 135f2a70b7..3566b1be89 100644 --- a/crates/ide_assists/src/handlers/expand_glob_import.rs +++ b/crates/ide_assists/src/handlers/expand_glob_import.rs @@ -49,8 +49,8 @@ pub(crate) fn expand_glob_import(acc: &mut Assists, ctx: &AssistContext) -> Opti _ => return None, }; - let current_scope = ctx.sema.scope(&star.parent()?); - let current_module = current_scope.module()?; + let current_scope = ctx.sema.scope(&star.parent()?)?; + let current_module = current_scope.module(); let refs_in_target = find_refs_in_mod(ctx, target_module, Some(current_module))?; let imported_defs = find_imported_defs(ctx, star)?; |