mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Merge #11125
11125: minor r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
5c11b363df
1 changed files with 1 additions and 7 deletions
|
@ -1,7 +1,5 @@
|
|||
//! Renderer for `enum` variants.
|
||||
|
||||
use std::iter;
|
||||
|
||||
use hir::{db::HirDatabase, HasAttrs, HirDisplay, StructKind};
|
||||
use ide_db::SymbolKind;
|
||||
use itertools::Itertools;
|
||||
|
@ -43,11 +41,7 @@ fn render(
|
|||
);
|
||||
(path, short, true)
|
||||
}
|
||||
None => (
|
||||
hir::ModPath::from_segments(hir::PathKind::Plain, iter::once(name.clone())),
|
||||
hir::ModPath::from_segments(hir::PathKind::Plain, iter::once(name)),
|
||||
false,
|
||||
),
|
||||
None => (name.clone().into(), name.into(), false),
|
||||
};
|
||||
let qualified_name = qualified_name.to_string();
|
||||
let short_qualified_name: SmolStr = short_qualified_name.to_string().into();
|
||||
|
|
Loading…
Reference in a new issue