chore: remove tmp assignment
This commit is contained in:
parent
c328cae78f
commit
1b9904a877
1 changed files with 7 additions and 11 deletions
|
@ -56,16 +56,6 @@ fn main() {
|
|||
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![];
|
||||
|
||||
if let Some(year) = args.year {
|
||||
|
@ -73,7 +63,13 @@ fn main() {
|
|||
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(" "));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue