Clippy
This commit is contained in:
parent
62d5288398
commit
3e6c2eae79
5 changed files with 36 additions and 24 deletions
|
|
@ -26,7 +26,7 @@ async fn h_api_root(parts: Parts) -> impl IntoResponse {
|
|||
.headers
|
||||
.get("Accept")
|
||||
.and_then(|h| h.to_str().ok())
|
||||
.map_or(false, |h| h.contains("text/html"))
|
||||
.is_some_and(|h| h.contains("text/html"))
|
||||
{
|
||||
return Redirect::temporary("./web/").into_response();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue