From 6375a20f2f3f9e747b32e3a9fbeda146ecdf82d4 Mon Sep 17 00:00:00 2001 From: BlockListed <44610569+BlockListed@users.noreply.github.com> Date: Sat, 9 Sep 2023 19:22:58 +0200 Subject: [PATCH] cargo clippy and cargo fmt --- src/auth.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/auth.rs b/src/auth.rs index b86c3925..9af38a8f 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -403,11 +403,10 @@ impl<'r> FromRequest<'r> for HostInfo { get_main_host().into() }; - let host_info = get_host_info(host.as_ref()) - .unwrap_or_else(|| { - log::debug!("Falling back to default domain, because {host} was not in domains."); - get_host_info(&get_main_host()).expect("Main domain doesn't have entry!") - }); + let host_info = get_host_info(host.as_ref()).unwrap_or_else(|| { + log::debug!("Falling back to default domain, because {host} was not in domains."); + get_host_info(&get_main_host()).expect("Main domain doesn't have entry!") + }); host_info } else if let Some(referer) = headers.get_one("Referer") {