1
0
mirror of https://github.com/actix/examples synced 2025-06-27 01:27:43 +02:00

chore: address clippy warnings

This commit is contained in:
Rob Ede
2025-02-19 22:24:56 +00:00
parent bb18fd8f66
commit 34ab565683
5 changed files with 8 additions and 8 deletions

View File

@ -52,11 +52,11 @@ async fn main() -> std::io::Result<()> {
Either::Left(srv.call(sreq).map(|res| res))
} else {
println!("An http request has arrived here, i will redirect it to use https");
return Either::Right(future::ready(Ok(sreq.into_response(
Either::Right(future::ready(Ok(sreq.into_response(
HttpResponse::MovedPermanently()
.append_header((http::header::LOCATION, url))
.finish(),
))));
))))
}
})
.service(index)