7092: Simplify r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2020-12-30 10:39:45 +00:00 committed by GitHub
commit efc76e2c88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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