chore: Fix clippy warning (#1346)
This commit is contained in:
@@ -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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user