refactor: use .into() instead of explicit Spans::raw
This commit is contained in:
parent
e55e8863c8
commit
98e408f603
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ impl menu::Item for CompletionItem {
|
|||
None => None,
|
||||
};
|
||||
|
||||
maybe_hex_color.map_or(Span::raw("color").into(), |hex| {
|
||||
maybe_hex_color.map_or("color".into(), |hex| {
|
||||
match Color::from_hex(hex) {
|
||||
Some(color) => Spans::from(vec![
|
||||
Span::raw("color "),
|
||||
|
|
Loading…
Reference in a new issue