chore: Fix clippy warning (#1346)

This commit is contained in:
tottoto
2023-04-06 23:09:34 +09:00
committed by GitHub
parent fa06bafcc0
commit 9990e6ef9d
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -155,6 +155,7 @@ impl Health for HealthService {
let status = crate::pb::health_check_response::ServingStatus::from(*status_rx.borrow()) as i32;
yield HealthCheckResponse { status };
#[allow(clippy::redundant_pattern_matching)]
while let Ok(_) = status_rx.changed().await {
let status = crate::pb::health_check_response::ServingStatus::from(*status_rx.borrow()) as i32;
yield HealthCheckResponse { status };