Skip to content

Commit

Permalink
Clippy is an instiatable beast
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoverbear committed Jan 8, 2025
1 parent ffbb125 commit 5f71d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/criticalup-cli/src/commands/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub(crate) async fn run(
// This should never happen, the user somehow passed an empty string which clap somehow did not detect.
panic!("Unexpected error: In strict mode an empty string was found as a binary name, this code should have never been reached. Please report this.");
}; // `Components` has no `len`
if components.next() != None {
if components.next().is_none() {
// In strict mode, the specified binary cannot be anything other than a single path component,
// since it must be present in one of the bin dirs of the installations.
return Err(Error::StrictModeDoesNotAcceptPaths);
Expand Down

0 comments on commit 5f71d03

Please sign in to comment.