Formatting

This commit is contained in:
Daniel García
2019-12-27 18:37:14 +01:00
parent 4cec502f7b
commit a0ece3754b
13 changed files with 29 additions and 67 deletions

View File

@@ -149,11 +149,10 @@ fn hibp_breach(username: String) -> JsonResult {
use reqwest::{header::USER_AGENT, Client};
if let Some(api_key) = crate::CONFIG.hibp_api_key() {
let hibp_client = Client::builder()
.use_sys_proxy()
.build()?;
let hibp_client = Client::builder().use_sys_proxy().build()?;
let res = hibp_client.get(&url)
let res = hibp_client
.get(&url)
.header(USER_AGENT, user_agent)
.header("hibp-api-key", api_key)
.send()?;