Skip to content

Commit cdf44be

Browse files
committed
Fix CI (tests didn't compile)
1 parent 92290bf commit cdf44be

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/keybinds.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ mod test {
6060

6161
#[test]
6262
fn test_default_config_deser() {
63-
toml::from_str(CONFIG_TOML).unwrap()
63+
let keybinds: Keybinds = toml::from_str(CONFIG_TOML).unwrap();
6464
}
6565
}

src/tui/prompts.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use int_enum::IntEnum;
22
use ratatui::{
3+
Frame,
34
layout::{Alignment, Constraint, Rect},
45
style::{Style, Stylize},
56
widgets::{Block, Borders, Clear, Row, Table, TableState},
6-
Frame,
77
};
88
use ratatui_macros::row;
99
use strum::{VariantArray, VariantNames};
@@ -37,7 +37,8 @@ pub trait PromptTable: VariantNames + Into<u8> + TryFrom<u8> {
3737
/// Returns a ratatui [Table] with static references to the names of each enum variant.
3838
///
3939
/// Enum variant names can be overwritten with the attribute:
40-
/// ```no_run
40+
/// ```
41+
/// # #[derive(strum::VariantNames)]
4142
/// # enum ExampleEnum {
4243
/// #[strum(serialize = "Exit App")]
4344
/// # Meow,

0 commit comments

Comments
 (0)