1
0
mirror of https://github.com/actix/actix-website synced 2025-06-29 16:24:58 +02:00

Moves everything into the cargo workspace.

This commit is contained in:
Cameron Dershem
2019-06-26 19:18:43 -04:00
parent 0601997b41
commit 4833874c5d
3 changed files with 9 additions and 10 deletions

View File

@ -22,12 +22,11 @@ fn index(_req: HttpRequest) -> Result<&'static str, MyError> {
// </response-error>
pub fn main() {
// use actix_web::{web, App, HttpServer};
use actix_web::{web, App, HttpServer};
// HttpServer::new(|| App::new().route("/", web::get().to(index)))
// .bind("127.0.0.1:8088")
// .unwrap()
// .run()
// .unwrap();
recommend_two::main();
HttpServer::new(|| App::new().route("/", web::get().to(index)))
.bind("127.0.0.1:8088")
.unwrap()
.run()
.unwrap();
}