chore: run cargo fmt
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use serde_json::{Value, Value::*, from_str};
|
||||
use serde_json::{from_str, Value, Value::*};
|
||||
|
||||
fn parse_add(json_object: &Value, skip_red: bool) -> i32 {
|
||||
match json_object {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use lazy_static::lazy_static;
|
||||
use regex::Regex;
|
||||
use std::{ops::Add, iter::once};
|
||||
use std::{iter::once, ops::Add};
|
||||
|
||||
lazy_static! {
|
||||
static ref RE: Regex = Regex::new(r#"-?\d+"#).unwrap();
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
use dotenv::dotenv;
|
||||
use reqwest::blocking::Client;
|
||||
use reqwest::header;
|
||||
use reqwest::{blocking::Client, header};
|
||||
use std::{env, fs::OpenOptions, io::Write, process};
|
||||
|
||||
fn main() {
|
||||
@@ -28,9 +27,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()
|
||||
|
||||
Reference in New Issue
Block a user