Format the changes from merge to master

This commit is contained in:
Daniel García
2021-04-15 18:30:23 +02:00
parent 8756c5c255
commit 305de2e2cd
4 changed files with 15 additions and 20 deletions

View File

@ -523,7 +523,10 @@ where
}
}
use reqwest::{blocking::{Client, ClientBuilder}, header};
use reqwest::{
blocking::{Client, ClientBuilder},
header,
};
pub fn get_reqwest_client() -> Client {
get_reqwest_client_builder().build().expect("Failed to build client")
@ -532,8 +535,5 @@ pub fn get_reqwest_client() -> Client {
pub fn get_reqwest_client_builder() -> ClientBuilder {
let mut headers = header::HeaderMap::new();
headers.insert(header::USER_AGENT, header::HeaderValue::from_static("Bitwarden_RS"));
Client::builder()
.default_headers(headers)
.timeout(Duration::from_secs(10))
Client::builder().default_headers(headers).timeout(Duration::from_secs(10))
}