diff options
author | Jake Howard <[email protected]> | 2021-04-06 21:54:42 +0100 |
---|---|---|
committer | Jake Howard <[email protected]> | 2021-04-06 21:54:42 +0100 |
commit | 3ab90259f20063b72c5560da3346840da7223acc (patch) | |
tree | 31ecdb87a59028fefcd00850d9235a5432fac151 /src/api/core/mod.rs | |
parent | 93c881a7a9abf30c1d2cfea961d5637de2757b86 (diff) | |
download | vaultwarden-3ab90259f20063b72c5560da3346840da7223acc.tar.gz vaultwarden-3ab90259f20063b72c5560da3346840da7223acc.zip |
Modify rustfmt file
Diffstat (limited to 'src/api/core/mod.rs')
-rw-r--r-- | src/api/core/mod.rs | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/api/core/mod.rs b/src/api/core/mod.rs index 70e1866e..a6f5c432 100644 --- a/src/api/core/mod.rs +++ b/src/api/core/mod.rs @@ -8,14 +8,8 @@ pub mod two_factor; pub use sends::start_send_deletion_scheduler; pub fn routes() -> Vec<Route> { - let mut mod_routes = routes![ - clear_device_token, - put_device_token, - get_eq_domains, - post_eq_domains, - put_eq_domains, - hibp_breach, - ]; + let mut mod_routes = + routes![clear_device_token, put_device_token, get_eq_domains, post_eq_domains, put_eq_domains, hibp_breach,]; let mut routes = Vec::new(); routes.append(&mut accounts::routes()); @@ -157,11 +151,7 @@ fn hibp_breach(username: String) -> JsonResult { if let Some(api_key) = crate::CONFIG.hibp_api_key() { let hibp_client = Client::builder().build()?; - let res = hibp_client - .get(&url) - .header(USER_AGENT, user_agent) - .header("hibp-api-key", api_key) - .send()?; + let res = hibp_client.get(&url).header(USER_AGENT, user_agent).header("hibp-api-key", api_key).send()?; // If we get a 404, return a 404, it means no breached accounts if res.status() == 404 { |