mirror of
https://github.com/actix/examples
synced 2025-06-29 02:10:36 +02:00
upgrade example to actix-web 0.7
This commit is contained in:
@ -4,7 +4,7 @@ extern crate env_logger;
|
||||
|
||||
use actix_web::{middleware, server, App, HttpRequest};
|
||||
|
||||
fn index(_req: HttpRequest) -> &'static str {
|
||||
fn index(_req: &HttpRequest) -> &'static str {
|
||||
"Hello world!"
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user