Skip to content

Commit 83b4730

Browse files
committed
fix clippy lint
Signed-off-by: Jay Lee <[email protected]>
1 parent 95c42f4 commit 83b4730

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

health/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//!
77
//! ### Usage
88
//!
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
1010
//! to maintain the service states. First, you need to register it to the server builder
1111
//! so that it can serve health check service later.
1212
//! ```ignore

health/src/proto/health.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ static file_descriptor_proto_data: &'static [u8] = b"\
467467

468468
static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
469469

470+
#[allow(deprecated)]
470471
fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
471472
::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
472473
}

health/src/service.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ impl HealthService {
163163
}
164164
}
165165

166+
#[allow(clippy::useless_conversion)]
166167
fn build_response(status: ServingStatus) -> HealthCheckResponse {
167168
HealthCheckResponse {
168169
status: status.into(),

0 commit comments

Comments
 (0)