refactor: use .into() instead of explicit Spans::raw

This commit is contained in:
Nikita Revenco 2024-12-20 06:58:31 +00:00
parent e55e8863c8
commit 98e408f603

View file

@ -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 "),