mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
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
@ -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 New Issue
Block a user