From f771de363c814498a8fda07757d88fc16d642f3f Mon Sep 17 00:00:00 2001 From: FabianLars Date: Wed, 1 Feb 2023 10:35:52 +0100 Subject: [PATCH] fmt --- plugins/authenticator/src/auth.rs | 5 ++--- plugins/localhost/src/lib.rs | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/authenticator/src/auth.rs b/plugins/authenticator/src/auth.rs index fe85bec4..d7508478 100644 --- a/plugins/authenticator/src/auth.rs +++ b/plugins/authenticator/src/auth.rs @@ -173,9 +173,8 @@ pub fn sign( } fn format_client_data(application: &str, challenge: &str) -> (Vec, Vec, String) { - let d = format!( - r#"{{"challenge": "{challenge}", "version": "U2F_V2", "appId": "{application}"}}"# - ); + let d = + format!(r#"{{"challenge": "{challenge}", "version": "U2F_V2", "appId": "{application}"}}"#); let mut challenge = Sha256::new(); challenge.update(d.as_bytes()); let chall_bytes = challenge.finalize().to_vec(); diff --git a/plugins/localhost/src/lib.rs b/plugins/localhost/src/lib.rs index 540521fe..4a11a84e 100644 --- a/plugins/localhost/src/lib.rs +++ b/plugins/localhost/src/lib.rs @@ -62,8 +62,8 @@ impl Builder { .setup(move |app| { let asset_resolver = app.asset_resolver(); std::thread::spawn(move || { - let server = Server::http(&format!("localhost:{port}")) - .expect("Unable to spawn server"); + let server = + Server::http(&format!("localhost:{port}")).expect("Unable to spawn server"); for req in server.incoming_requests() { let path = req .url()