From c1602ea080896937d206fb56bac005311e3ab40d Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Thu, 8 Feb 2024 13:02:32 +0100 Subject: [PATCH] explicit imports --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]) }