fix(cli): 🚑 incorrect import in tui macros
This commit is contained in:
parent
da204857b7
commit
d87321ba3e
@ -200,6 +200,7 @@ pub fn key_event_to_string(key_event: &KeyEvent) -> String {
|
||||
key
|
||||
}
|
||||
|
||||
/// Parses a string into a vector of [`KeyEvent`]
|
||||
pub fn parse_key_sequence(raw: &str) -> Result<Vec<KeyEvent>> {
|
||||
if raw.chars().filter(|c| *c == '>').count() != raw.chars().filter(|c| *c == '<').count() {
|
||||
return Err(eyre::eyre!("Invalid key sequence: `{}`", raw));
|
||||
|
||||
@ -42,7 +42,7 @@ macro_rules! components {
|
||||
$(
|
||||
temp_vec.push(
|
||||
Box::new($x)
|
||||
as Box<dyn lool::cli::tui::framework::component::Component $( $t + )* >
|
||||
as Box<dyn lool::tui::Component $( $t + )* >
|
||||
);
|
||||
)*
|
||||
temp_vec
|
||||
@ -58,7 +58,7 @@ macro_rules! children {
|
||||
$(
|
||||
map.insert(
|
||||
$name.to_string(),
|
||||
Box::new($value) as Box<dyn lool::cli::tui::framework::component::Component>
|
||||
Box::new($value) as Box<dyn lool::tui::Component>
|
||||
);
|
||||
)*
|
||||
map
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user