From 717e92b50614f5253cb0d1b27554277e6741e383 Mon Sep 17 00:00:00 2001 From: fabolous005 Date: Tue, 3 Dec 2024 08:47:55 +0100 Subject: [PATCH] add Shield to remove warning --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 00d45ad..2480305 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,6 +3,7 @@ use rocket::form::Form; use rocket_dyn_templates::{Template, context}; use rocket::fs::FileServer; +use rocket::shield::Shield; use std::net::{IpAddr, Ipv4Addr}; @@ -53,6 +54,7 @@ fn rocket() -> _ { rocket::build() .mount("/", routes![index, login]) .mount("/static", FileServer::from("static")) // Serves files in the `static` directory + .attach(Shield::new()) .attach(Template::fairing()) }