Skip to content

Commit

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

Please sign in to comment.