File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 6
6
//!
7
7
//! ### Usage
8
8
//!
9
- //! The crate provides a default implementation of `Health` service, you can using it
9
+ //! The crate provides a default implementation of `Health` service, you can use it
10
10
//! to maintain the service states. First, you need to register it to the server builder
11
11
//! so that it can serve health check service later.
12
12
//! ```ignore
Original file line number Diff line number Diff line change @@ -467,6 +467,7 @@ static file_descriptor_proto_data: &'static [u8] = b"\
467
467
468
468
static file_descriptor_proto_lazy: :: protobuf:: rt:: LazyV2 < :: protobuf:: descriptor:: FileDescriptorProto > = :: protobuf:: rt:: LazyV2 :: INIT ;
469
469
470
+ #[ allow( deprecated) ]
470
471
fn parse_descriptor_proto ( ) -> :: protobuf:: descriptor:: FileDescriptorProto {
471
472
:: protobuf:: parse_from_bytes ( file_descriptor_proto_data) . unwrap ( )
472
473
}
Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ impl HealthService {
163
163
}
164
164
}
165
165
166
+ #[ allow( clippy:: useless_conversion) ]
166
167
fn build_response ( status : ServingStatus ) -> HealthCheckResponse {
167
168
HealthCheckResponse {
168
169
status : status. into ( ) ,
You can’t perform that action at this time.
0 commit comments