diff --git a/src/main.rs b/src/main.rs index 5411c6b..3bebfc5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,4 @@ -#[macro_use] extern crate rocket; +use rocket::{get,launch,routes}; #[get("/")] fn index() -> &'static str { @@ -6,6 +6,6 @@ fn index() -> &'static str { } #[launch] -fn rocket() -> _ { +fn entrypoint() -> _ { rocket::build().mount("/", routes![index]) }