mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-14 16:14:48 +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(|| {
|
static CLIENT: Lazy<reqwest::Client> = Lazy::new(|| {
|
||||||
let mut headers = header::HeaderMap::new();
|
let mut headers = header::HeaderMap::new();
|
||||||
headers.insert(USER_AGENT, header::HeaderValue::from_static("cultivation"));
|
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()
|
let client = reqwest::Client::builder().default_headers(headers);
|
||||||
.default_headers(headers);
|
|
||||||
client.build().unwrap()
|
client.build().unwrap()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user