Skip to content

Commit 5c11b36

Browse files
bors[bot]matklad
andauthored
Merge #11125
11125: minor r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
2 parents 6831918 + 42ff46c commit 5c11b36

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

crates/ide_completion/src/render/enum_variant.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Renderer for `enum` variants.
22
3-
use std::iter;
4-
53
use hir::{db::HirDatabase, HasAttrs, HirDisplay, StructKind};
64
use ide_db::SymbolKind;
75
use itertools::Itertools;
@@ -43,11 +41,7 @@ fn render(
4341
);
4442
(path, short, true)
4543
}
46-
None => (
47-
hir::ModPath::from_segments(hir::PathKind::Plain, iter::once(name.clone())),
48-
hir::ModPath::from_segments(hir::PathKind::Plain, iter::once(name)),
49-
false,
50-
),
44+
None => (name.clone().into(), name.into(), false),
5145
};
5246
let qualified_name = qualified_name.to_string();
5347
let short_qualified_name: SmolStr = short_qualified_name.to_string().into();

0 commit comments

Comments
 (0)