Browse Source

cargo clippy and cargo fmt

pull/3870/merge^2
BlockListed 2 years ago
parent
commit
6375a20f2f
No known key found for this signature in database GPG Key ID: 2D204777C477B588
  1. 3
      src/auth.rs

3
src/auth.rs

@ -403,8 +403,7 @@ impl<'r> FromRequest<'r> for HostInfo {
get_main_host().into() get_main_host().into()
}; };
let host_info = get_host_info(host.as_ref()) let host_info = get_host_info(host.as_ref()).unwrap_or_else(|| {
.unwrap_or_else(|| {
log::debug!("Falling back to default domain, because {host} was not in domains."); 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!") get_host_info(&get_main_host()).expect("Main domain doesn't have entry!")
}); });

Loading…
Cancel
Save