diff --git a/pty/src/cmdbuilder.rs b/pty/src/cmdbuilder.rs index a1a3a78a0..4e2f07823 100644 --- a/pty/src/cmdbuilder.rs +++ b/pty/src/cmdbuilder.rs @@ -445,7 +445,7 @@ impl CommandBuilder { .into(); Ok(exe .into_string() - .unwrap_or_else(|| "%CompSpec%".to_string())) + .unwrap_or_else(|_| "%CompSpec%".to_string())) } pub(crate) fn cmdline(&self) -> anyhow::Result<(Vec, Vec)> {