mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-06-01 16:10:49 +00:00
cargo clippy and cargo fmt
This commit is contained in:
parent
d1cb726996
commit
6375a20f2f
|
@ -403,11 +403,10 @@ 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!")
|
});
|
||||||
});
|
|
||||||
|
|
||||||
host_info
|
host_info
|
||||||
} else if let Some(referer) = headers.get_one("Referer") {
|
} else if let Some(referer) = headers.get_one("Referer") {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user