diff --git a/crates/uv/src/commands/project/run.rs b/crates/uv/src/commands/project/run.rs index 5747ac8fc06a5..c68013a3c93f2 100644 --- a/crates/uv/src/commands/project/run.rs +++ b/crates/uv/src/commands/project/run.rs @@ -53,7 +53,7 @@ use crate::settings::ResolverInstallerSettings; pub(crate) async fn run( project_dir: &Path, script: Option, - command: RunCommand, + command: Option, requirements: Vec, show_resolution: bool, locked: bool, @@ -721,7 +721,7 @@ pub(crate) async fn run( // Check if any run command is given. // If not, print the available scripts for the current interpreter. - if let RunCommand::Empty = command { + let Some(command) = command else { writeln!( printer.stdout(), "Provide a command or script to invoke with `uv run ` or `uv run