From f4d454727ea66c8635149c695f72fd96c0bcb24b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Trygve=20Laugst=C3=B8l?= Date: Fri, 3 Jan 2025 18:23:02 +0100 Subject: [PATCH] Fixing compilation warning --- backend/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/src/main.rs b/backend/src/main.rs index 1754cf7..4e336fc 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -168,6 +168,11 @@ fn configure_logging() -> Result<(TracerProvider, LoggerProvider), anyhow::Error #[derive(Clone, Debug)] struct ServerImpl { + /// TODO: Figure out how to best handle the passing of the pool. Right now it is used inside + /// EmployeeDao, but not anywhere else. I'm not sure if cloning the Pool is ok or not. + /// Perhaps the EmployeeDao shouldn't use the pool at all and everything should just use this + /// single reference. + #[allow(dead_code)] pool: sqlx::PgPool, assets_path: String, ctx: ReqwestClient,