Merge #7092
7092: Simplify r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
efc76e2c88
1 changed files with 4 additions and 2 deletions
|
@ -432,6 +432,7 @@ fn item_import_kind(item: ItemInNs) -> Option<ImportKind> {
|
|||
mod tests {
|
||||
use base_db::{fixture::WithFixture, SourceDatabase, Upcast};
|
||||
use expect_test::{expect, Expect};
|
||||
use stdx::format_to;
|
||||
|
||||
use crate::{data::FunctionData, test_db::TestDB, AssocContainerId, Lookup};
|
||||
|
||||
|
@ -467,9 +468,10 @@ mod tests {
|
|||
if let ItemInNs::Types(ModuleDefId::FunctionId(function_id))
|
||||
| ItemInNs::Values(ModuleDefId::FunctionId(function_id)) = item
|
||||
{
|
||||
full_path += &format!(
|
||||
format_to!(
|
||||
full_path,
|
||||
"::{}",
|
||||
FunctionData::fn_data_query(&db, function_id).name
|
||||
FunctionData::fn_data_query(&db, function_id).name,
|
||||
);
|
||||
}
|
||||
full_path
|
||||
|
|
Loading…
Reference in a new issue