diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-12-30 10:39:45 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-30 10:39:45 +0000 |
commit | efc76e2c886a0c121b014a587123e2854c5f57df (patch) | |
tree | 68ff56bc1ebe5980308b3e045c9dea0f7751949e /crates/hir_def | |
parent | 9d975320200e7d399661f04a0ba34b2fd0ba639b (diff) | |
parent | 0c3be014ec7108df4bb6460b54fdf46314e059a7 (diff) |
Merge #7092
7092: Simplify r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/hir_def')
-rw-r--r-- | crates/hir_def/src/import_map.rs | 6 |
1 files changed, 4 insertions, 2 deletions
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 |