responder accepting &str and proper 404
This commit is contained in:
+1
-1
@@ -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()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user