responder accepting &str and proper 404

This commit is contained in:
2025-01-18 15:33:59 +01:00
parent 7722a5eff5
commit e9e3b05dc5
3 changed files with 13 additions and 15 deletions
+1 -1
View File
@@ -16,5 +16,5 @@ async fn main() {
}
async fn handler(req: Request<Incoming>) -> Result<Response<Full<Bytes>>, Infallible> {
Responder::text(format!("Hello World! {}", req.uri()))
Responder::text(&format!("Hello World! {}", req.uri()))
}