1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-07-03 20:45:46 +00:00

change marco import (#727)

This commit is contained in:
lagudomeze 2019-03-16 12:08:39 +08:00 committed by Nikolay Kim
parent 1f9467e880
commit 414614e1b5

View file

@ -1,9 +1,6 @@
use futures::IntoFuture;
#[macro_use]
extern crate actix_web;
use actix_web::{middleware, web, App, Error, HttpRequest, HttpResponse, HttpServer};
use actix_web::{get, middleware, web, App, Error, HttpRequest, HttpResponse, HttpServer};
#[get("/resource1/{name}/index.html")]
fn index(req: HttpRequest, name: web::Path<String>) -> String {