mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
s/str::to_string/str::to_owned
This commit is contained in:
@ -38,7 +38,7 @@ async fn page(params: web::Path<(i32,)>) -> actix_web::Result<impl Responder> {
|
||||
|
||||
#[get("/")]
|
||||
async fn hello() -> impl Responder {
|
||||
Html("<p>Hello world!</p>".to_string())
|
||||
Html("<p>Hello world!</p>".to_owned())
|
||||
}
|
||||
|
||||
#[actix_web::main]
|
||||
|
Reference in New Issue
Block a user