fix clippy

This commit is contained in:
Devyn Cairns 2024-06-06 17:03:54 -07:00
parent f829994c42
commit 67edc9bc34
No known key found for this signature in database

View File

@ -607,7 +607,7 @@ fn escape_cmd_argument(arg: &Spanned<OsString>) -> Result<Cow<'_, OsStr>, ShellE
// If `arg` contains space or special characters, quote the entire argument by double quotes.
let mut new_str = OsString::new();
new_str.push("\"");
new_str.push(&arg);
new_str.push(arg);
new_str.push("\"");
Ok(Cow::Owned(new_str))
} else {