From 5f71d030a11d57fe08e34860cb23a3501da576f0 Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Wed, 8 Jan 2025 11:40:45 -0800 Subject: [PATCH] Clippy is an instiatable beast --- crates/criticalup-cli/src/commands/run.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/criticalup-cli/src/commands/run.rs b/crates/criticalup-cli/src/commands/run.rs index efc16a81..68ff1965 100644 --- a/crates/criticalup-cli/src/commands/run.rs +++ b/crates/criticalup-cli/src/commands/run.rs @@ -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);