mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Simplify
This commit is contained in:
parent
9d97532020
commit
0c3be014ec
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…
Add table
Add a link
Reference in a new issue