From 000001908e1c03f2fceb09c8c393db7c49379f8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Mon, 12 Dec 2022 22:41:35 +0100 Subject: [PATCH] chore: run cargo fmt --- Cargo.toml | 2 +- src/bin/download.rs | 4 +--- src/main.rs | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3492c01..4b3bb2c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aoc" -version = "17.0.0" +version = "19.0.0" edition = "2021" authors = ["Matej Janežič "] default-run = "aoc" diff --git a/src/bin/download.rs b/src/bin/download.rs index 95ceae5..54632e7 100644 --- a/src/bin/download.rs +++ b/src/bin/download.rs @@ -28,9 +28,7 @@ fn main() { let client = Client::builder().default_headers(headers).build().unwrap(); let res = client - .get(format!( - "https://adventofcode.com/{year}/day/{day}/input" - )) + .get(format!("https://adventofcode.com/{year}/day/{day}/input")) .send() .unwrap() .text() diff --git a/src/main.rs b/src/main.rs index 3805710..45bca4c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,7 +39,5 @@ fn main() { }) .sum(); - println!( - "{ANSI_BOLD}Total:{ANSI_RESET} {ANSI_ITALIC}{total:.2}ms{ANSI_RESET}" - ); + println!("{ANSI_BOLD}Total:{ANSI_RESET} {ANSI_ITALIC}{total:.2}ms{ANSI_RESET}"); }