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 };
+1 -1
View File
@@ -423,7 +423,7 @@ impl Status {
}
if let Some(h2_err) = err.source().and_then(|e| e.downcast_ref::<h2::Error>()) {
let code = Status::code_from_h2(&h2_err);
let code = Status::code_from_h2(h2_err);
let status = Self::new(code, format!("h2 protocol error: {}", err));
return Some(status);