diff --git a/src/cli/run.rs b/src/cli/run.rs index a7a1e2172..994f661ba 100644 --- a/src/cli/run.rs +++ b/src/cli/run.rs @@ -599,9 +599,9 @@ impl Run { &self, task: &Task, env: &mut EnvMap, - get_args: impl Fn() -> Vec + get_args: impl Fn() -> Vec, ) -> Result<()> { - let (spec, _) = task.parse_usage_spec(self.cd.clone(), &env)?; + let (spec, _) = task.parse_usage_spec(self.cd.clone(), env)?; if !spec.cmd.args.is_empty() || !spec.cmd.flags.is_empty() { let args: Vec = get_args(); let po = usage::parse(&spec, &args).map_err(|err| eyre!(err))?;