From 23c6bc4fd04fa4d8f10c94a8f63ac3e9589918c8 Mon Sep 17 00:00:00 2001 From: GW_MC <72297530+GWMCwing@users.noreply.github.com> Date: Fri, 5 Dec 2025 14:20:56 +0800 Subject: [PATCH] Add #[allow(dead_code)] annotation to HealthState::new for test usage --- apps/api/src/routes/api/health/state.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/api/src/routes/api/health/state.rs b/apps/api/src/routes/api/health/state.rs index ef81a99..2d63c45 100644 --- a/apps/api/src/routes/api/health/state.rs +++ b/apps/api/src/routes/api/health/state.rs @@ -13,6 +13,7 @@ impl Default for HealthState { } impl HealthState { + #[allow(dead_code)] // used in tests pub fn new(start_time: Instant) -> Self { Self { start_time } }