Skip to content

Commit

Permalink
fix(clipcat-menu): fix lints and errors
Browse files Browse the repository at this point in the history
  • Loading branch information
xrelkd committed Dec 31, 2023
1 parent e860a68 commit e69d01e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions clipcat-menu/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,12 @@ mod tests {

#[test]
fn test_command_simple() {
match Cli::parse_from(["program_name", "version"]).commands {
Some(Commands::Version { .. }) => (),
_ => panic!(),
if let Some(Commands::Version { .. }) =
Cli::parse_from(["program_name", "version"]).commands
{
// everything is good.
} else {
panic!();
}
}
}

0 comments on commit e69d01e

Please sign in to comment.