remove useless string allocation

master
Aleš Katona 2 years ago
parent feea9b7b1d
commit daa88e5bcb
Signed by: almindor
GPG Key ID: 2F773149BF38B48F

@ -55,8 +55,7 @@ fn parse_args() -> Cli {
// running with cargo vcs causes the vcs arg to be sent along
// we need to unhack this for Clap
let mut all_args: Vec<OsString> = std::env::args_os().collect();
let vcsstr = String::from("vcs");
let osvcsstr = OsString::from(vcsstr);
let osvcsstr = OsString::from("vcs");
if all_args.get(1) == Some(&osvcsstr) {
all_args.remove(1);
}

Loading…
Cancel
Save