Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-assists/src/handlers/toggle_async_sugar.rs')
-rw-r--r--crates/ide-assists/src/handlers/toggle_async_sugar.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/crates/ide-assists/src/handlers/toggle_async_sugar.rs b/crates/ide-assists/src/handlers/toggle_async_sugar.rs
index 31d18a6013..98975a324d 100644
--- a/crates/ide-assists/src/handlers/toggle_async_sugar.rs
+++ b/crates/ide-assists/src/handlers/toggle_async_sugar.rs
@@ -1,4 +1,4 @@
-use hir::{ImportPathConfig, ModuleDef};
+use hir::ModuleDef;
use ide_db::{
assists::{AssistId, AssistKind},
famous_defs::FamousDefs,
@@ -139,11 +139,7 @@ pub(crate) fn desugar_async_into_impl_future(
let trait_path = module.find_path(
ctx.db(),
ModuleDef::Trait(future_trait),
- ImportPathConfig {
- prefer_no_std: ctx.config.prefer_no_std,
- prefer_prelude: ctx.config.prefer_prelude,
- prefer_absolute: ctx.config.prefer_absolute,
- },
+ ctx.config.import_path_config(),
)?;
let trait_path = trait_path.display(ctx.db());