Add #[allow(dead_code)] annotation to HealthState::new for test usage
All checks were successful
Test / verify-generated-code (pull_request) Successful in 55s
Test / test-frontend (pull_request) Successful in 20s
Test / frontend-build (pull_request) Successful in 23s
Test / test (pull_request) Successful in 1m13s
Test / lint (pull_request) Successful in 1m15s

This commit is contained in:
GW_MC
2025-12-05 14:20:56 +08:00
parent bbc6977e73
commit 23c6bc4fd0

View File

@@ -13,6 +13,7 @@ impl Default for HealthState {
} }
impl HealthState { impl HealthState {
#[allow(dead_code)] // used in tests
pub fn new(start_time: Instant) -> Self { pub fn new(start_time: Instant) -> Self {
Self { start_time } Self { start_time }
} }