chore: remove tmp assignment

This commit is contained in:
Felix Spöttel 2022-11-06 21:21:06 +01:00
parent c328cae78f
commit 1b9904a877

View file

@ -56,16 +56,6 @@ fn main() {
exit_with_status(1, &tmp_file_path); exit_with_status(1, &tmp_file_path);
} }
let mut tmp_cmd_args = vec![
"--file".into(),
tmp_file_path.to_string_lossy().to_string(),
"--day".into(),
args.day.to_string(),
"download".into(),
];
let mut cmd_args = vec![]; let mut cmd_args = vec![];
if let Some(year) = args.year { if let Some(year) = args.year {
@ -73,7 +63,13 @@ fn main() {
cmd_args.push(year.to_string()); cmd_args.push(year.to_string());
} }
cmd_args.append(&mut tmp_cmd_args); cmd_args.append(&mut vec![
"--file".into(),
tmp_file_path.to_string_lossy().to_string(),
"--day".into(),
args.day.to_string(),
"download".into(),
]);
println!("Downloading input with >aoc {}", cmd_args.join(" ")); println!("Downloading input with >aoc {}", cmd_args.join(" "));