We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10352c6 commit ae9d58bCopy full SHA for ae9d58b
tui/src/hint.rs
@@ -2,7 +2,6 @@ use ratatui::{
2
style::{Style, Stylize},
3
text::{Line, Span},
4
};
5
-use std::borrow::Cow;
6
7
pub struct Shortcut {
8
pub key_sequences: Vec<Span<'static>>,
@@ -63,7 +62,7 @@ impl Shortcut {
63
62
Self {
64
key_sequences: key_sequences
65
.iter()
66
- .map(|s| Span::styled(Cow::<'static, str>::Borrowed(s), Style::default().bold()))
+ .map(|s| Span::styled(*s, Style::default().bold()))
67
.collect(),
68
desc,
69
}
0 commit comments