From e5511b3734d63acf502d8fb9bc69fa9d7d7795bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Ant=C3=B4nio=20Cardoso?= Date: Wed, 13 Nov 2024 22:37:07 -0300 Subject: [PATCH] src: lib: web: Remove unused function --- src/lib/web/mod.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/lib/web/mod.rs b/src/lib/web/mod.rs index 964274f..65a6640 100644 --- a/src/lib/web/mod.rs +++ b/src/lib/web/mod.rs @@ -55,14 +55,6 @@ pub async fn run(address: std::net::SocketAddrV4) { } } -pub fn configure_router(modifier: F) -where - F: FnOnce(&mut Router), -{ - let mut router = SERVER.router.lock().unwrap(); - modifier(&mut router); -} - async fn shutdown_signal() { let ctrl_c = async { signal::ctrl_c()