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:
@ -30,7 +30,7 @@ async fn main() -> io::Result<()> {
|
||||
|
||||
#[get("/")]
|
||||
async fn index() -> impl Responder {
|
||||
Html(include_str!("index.html").to_string())
|
||||
Html(include_str!("index.html").to_owned())
|
||||
}
|
||||
|
||||
#[get("/events")]
|
||||
|
Reference in New Issue
Block a user