Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-assists/src/handlers/convert_into_to_from.rs')
-rw-r--r--crates/ide-assists/src/handlers/convert_into_to_from.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/ide-assists/src/handlers/convert_into_to_from.rs b/crates/ide-assists/src/handlers/convert_into_to_from.rs
index 5aa94590e6..8c59ef4314 100644
--- a/crates/ide-assists/src/handlers/convert_into_to_from.rs
+++ b/crates/ide-assists/src/handlers/convert_into_to_from.rs
@@ -51,7 +51,10 @@ pub(crate) fn convert_into_to_from(acc: &mut Assists, ctx: &AssistContext<'_>) -
Some(hir::PathResolution::Def(module_def)) => module_def,
_ => return None,
};
- mod_path_to_ast(&module.find_path(ctx.db(), src_type_def, cfg)?)
+ mod_path_to_ast(
+ &module.find_path(ctx.db(), src_type_def, cfg)?,
+ module.krate().edition(ctx.db()),
+ )
};
let dest_type = match &ast_trait {