perf: avoid unnecessary string allocation
This commit is contained in:
parent
f29f336c4d
commit
3d8dc157a0
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ impl menu::Item for CompletionItem {
|
|||
}
|
||||
None => "".into(),
|
||||
},
|
||||
CompletionItem::Other(core::CompletionItem { kind, .. }) => Span::raw(kind.to_string()),
|
||||
CompletionItem::Other(core::CompletionItem { kind, .. }) => kind.as_ref().into(),
|
||||
};
|
||||
|
||||
let first_cell = menu::Cell::from(Span::styled(
|
||||
|
|
Loading…
Add table
Reference in a new issue