From dcd08ff46e31a8b89be3f55193dc04357c9d912d Mon Sep 17 00:00:00 2001 From: Ethan Girouard Date: Fri, 1 Mar 2024 15:03:23 -0500 Subject: [PATCH] Remove favicon server --- src/main.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/main.rs b/src/main.rs index 246bc78..29effe2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -47,18 +47,6 @@ async fn main() { .unwrap(); } -#[cfg(feature = "ssr")] -#[actix_web::get("favicon.ico")] -async fn favicon( - leptos_options: actix_web::web::Data, -) -> actix_web::Result { - let leptos_options = leptos_options.into_inner(); - let site_root = &leptos_options.site_root; - Ok(actix_files::NamedFile::open(format!( - "{site_root}/favicon.ico" - ))?) -} - #[cfg(not(any(feature = "ssr", feature = "csr")))] pub fn main() { // no client-side main function