Skip to content

Commit

Permalink
fix(dialog): update usage according to the latest version of dialoguer
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Sep 24, 2023
1 parent 7444cc5 commit af66e01
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
@@ -21,6 +21,9 @@ pub enum Error {
/// Error that might occur when tray to get help from an external provider.
#[error("External help provider error: `{0}`")]
ProviderError(String),
/// Error that might occur during showing dialogues.
#[error("Dialogue error: `{0}`")]
DialogueError(#[from] dialoguer::Error),
}

/// Type alias for the standard [`Result`] type.
1 change: 0 additions & 1 deletion src/helper/docs/mod.rs
Original file line number Diff line number Diff line change
@@ -189,6 +189,5 @@ fn get_selection_theme() -> ColorfulTheme {
unchecked_item_prefix: style("❤".to_string()).for_stderr().black(),
picked_item_prefix: style("❯".to_string()).for_stderr().green(),
unpicked_item_prefix: style(" ".to_string()).for_stderr(),
inline_selections: true,
}
}

0 comments on commit af66e01

Please sign in to comment.