Skip to content

Commit

Permalink
fix(caracal): 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 3d78fb5 commit 20b1527
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions caracal/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,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 20b1527

Please sign in to comment.