diff options
Diffstat (limited to 'crates/hir_def')
-rw-r--r-- | crates/hir_def/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/hir_def/src/import_map.rs | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/crates/hir_def/Cargo.toml b/crates/hir_def/Cargo.toml index a88b5f57e..e8b581e2f 100644 --- a/crates/hir_def/Cargo.toml +++ b/crates/hir_def/Cargo.toml | |||
@@ -17,7 +17,7 @@ either = "1.5.3" | |||
17 | anymap = "0.12.1" | 17 | anymap = "0.12.1" |
18 | drop_bomb = "0.1.4" | 18 | drop_bomb = "0.1.4" |
19 | fst = { version = "0.4", default-features = false } | 19 | fst = { version = "0.4", default-features = false } |
20 | itertools = "0.9.0" | 20 | itertools = "0.10.0" |
21 | indexmap = "1.4.0" | 21 | indexmap = "1.4.0" |
22 | smallvec = "1.4.0" | 22 | smallvec = "1.4.0" |
23 | 23 | ||
diff --git a/crates/hir_def/src/import_map.rs b/crates/hir_def/src/import_map.rs index c4dc894df..30b22f51d 100644 --- a/crates/hir_def/src/import_map.rs +++ b/crates/hir_def/src/import_map.rs | |||
@@ -432,6 +432,7 @@ fn item_import_kind(item: ItemInNs) -> Option<ImportKind> { | |||
432 | mod tests { | 432 | mod tests { |
433 | use base_db::{fixture::WithFixture, SourceDatabase, Upcast}; | 433 | use base_db::{fixture::WithFixture, SourceDatabase, Upcast}; |
434 | use expect_test::{expect, Expect}; | 434 | use expect_test::{expect, Expect}; |
435 | use stdx::format_to; | ||
435 | 436 | ||
436 | use crate::{data::FunctionData, test_db::TestDB, AssocContainerId, Lookup}; | 437 | use crate::{data::FunctionData, test_db::TestDB, AssocContainerId, Lookup}; |
437 | 438 | ||
@@ -467,9 +468,10 @@ mod tests { | |||
467 | if let ItemInNs::Types(ModuleDefId::FunctionId(function_id)) | 468 | if let ItemInNs::Types(ModuleDefId::FunctionId(function_id)) |
468 | | ItemInNs::Values(ModuleDefId::FunctionId(function_id)) = item | 469 | | ItemInNs::Values(ModuleDefId::FunctionId(function_id)) = item |
469 | { | 470 | { |
470 | full_path += &format!( | 471 | format_to!( |
472 | full_path, | ||
471 | "::{}", | 473 | "::{}", |
472 | FunctionData::fn_data_query(&db, function_id).name | 474 | FunctionData::fn_data_query(&db, function_id).name, |
473 | ); | 475 | ); |
474 | } | 476 | } |
475 | full_path | 477 | full_path |