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()