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.rs6
1 files changed, 3 insertions, 3 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 8f02d28b82..e330102423 100644
--- a/crates/ide-assists/src/handlers/convert_into_to_from.rs
+++ b/crates/ide-assists/src/handlers/convert_into_to_from.rs
@@ -39,11 +39,11 @@ pub(crate) fn convert_into_to_from(acc: &mut Assists, ctx: &AssistContext<'_>) -
let module = ctx.sema.scope(impl_.syntax())?.module();
let trait_ = resolve_target_trait(&ctx.sema, &impl_)?;
- if trait_ != FamousDefs(&ctx.sema, module.krate()).core_convert_Into()? {
+ if trait_ != FamousDefs(&ctx.sema, module.krate(ctx.db())).core_convert_Into()? {
return None;
}
- let cfg = ctx.config.find_path_config(ctx.sema.is_nightly(module.krate()));
+ let cfg = ctx.config.find_path_config(ctx.sema.is_nightly(module.krate(ctx.sema.db)));
let src_type_path = {
let src_type_path = src_type.syntax().descendants().find_map(ast::Path::cast)?;
@@ -53,7 +53,7 @@ pub(crate) fn convert_into_to_from(acc: &mut Assists, ctx: &AssistContext<'_>) -
};
mod_path_to_ast(
&module.find_path(ctx.db(), src_type_def, cfg)?,
- module.krate().edition(ctx.db()),
+ module.krate(ctx.db()).edition(ctx.db()),
)
};