mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 07:34:36 +01:00
rustfmt
This commit is contained in:
@@ -4,10 +4,12 @@ use reqwest::header::{CONTENT_TYPE, USER_AGENT};
|
||||
static CLIENT: Lazy<reqwest::Client> = Lazy::new(|| {
|
||||
let mut headers = header::HeaderMap::new();
|
||||
headers.insert(USER_AGENT, header::HeaderValue::from_static("cultivation"));
|
||||
headers.insert(CONTENT_TYPE, header::HeaderValue::from_static("application/json"));
|
||||
headers.insert(
|
||||
CONTENT_TYPE,
|
||||
header::HeaderValue::from_static("application/json"),
|
||||
);
|
||||
|
||||
let client = reqwest::Client::builder()
|
||||
.default_headers(headers);
|
||||
let client = reqwest::Client::builder().default_headers(headers);
|
||||
client.build().unwrap()
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user