1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 12:37:49 +00:00

env: fix build on Windows

This commit is contained in:
Alex Lyon 2019-05-13 12:22:43 -07:00
parent 18b19715f9
commit ab8c2b021a

2
src/env/env.rs vendored
View file

@ -110,7 +110,7 @@ fn build_command<'a, 'b>(args: &'a mut Vec<&'b str>) -> (Cow<'b, str>, &'a [&'b
args.insert(0, "/d/c");
let progname = env::var("ComSpec")
.map(Cow::from)
.unwrap_or_else(|| Cow::from("cmd"));
.unwrap_or_else(|_| Cow::from("cmd"));
(progname, &args[..])
}