chore: run cargo fmt
This commit is contained in:
		@@ -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"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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()
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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}"
 | 
					 | 
				
			||||||
    );
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user