mirror of
https://github.com/actix/actix-website
synced 2025-06-27 15:39:02 +02:00
use actix-web 0.7 for examples
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
extern crate actix_web;
|
||||
use actix_web::{server, App, HttpRequest};
|
||||
|
||||
fn index(_req: HttpRequest) -> &'static str {
|
||||
fn index(_req: &HttpRequest) -> &'static str {
|
||||
"Hello world!"
|
||||
}
|
||||
// </setup>
|
||||
|
Reference in New Issue
Block a user