chore: run cargo fmt

This commit is contained in:
Matej Janezic 2022-12-12 22:41:35 +01:00
parent 0000018081
commit 000001900c
Signed by: janezicmatej
GPG Key ID: 4298E230ED37B2C0
3 changed files with 3 additions and 7 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "aoc" name = "aoc"
version = "17.0.0" version = "19.0.0"
edition = "2021" edition = "2021"
authors = ["Matej Janežič <janezic.mj@gmail.com>"] authors = ["Matej Janežič <janezic.mj@gmail.com>"]
default-run = "aoc" default-run = "aoc"

View File

@ -28,9 +28,7 @@ fn main() {
let client = Client::builder().default_headers(headers).build().unwrap(); let client = Client::builder().default_headers(headers).build().unwrap();
let res = client let res = client
.get(format!( .get(format!("https://adventofcode.com/{year}/day/{day}/input"))
"https://adventofcode.com/{year}/day/{day}/input"
))
.send() .send()
.unwrap() .unwrap()
.text() .text()

View File

@ -39,7 +39,5 @@ fn main() {
}) })
.sum(); .sum();
println!( println!("{ANSI_BOLD}Total:{ANSI_RESET} {ANSI_ITALIC}{total:.2}ms{ANSI_RESET}");
"{ANSI_BOLD}Total:{ANSI_RESET} {ANSI_ITALIC}{total:.2}ms{ANSI_RESET}"
);
} }