chore: fix clippy lints (#707)

This commit is contained in:
David Pedersen
2021-07-09 18:23:55 +02:00
committed by GitHub
parent 5aa8ae1fec
commit 4b0ece6d28
19 changed files with 47 additions and 41 deletions
+2 -2
View File
@@ -20,12 +20,12 @@ mod pb {
tonic::include_proto!("grpc.reflection.v1alpha");
pub(crate) const REFLECTION_SERVICE_DESCRIPTOR: &'static [u8] =
pub(crate) const REFLECTION_SERVICE_DESCRIPTOR: &[u8] =
tonic::include_file_descriptor_set!("reflection_v1alpha1");
pub(crate) fn get_encoded_reflection_service_fd() -> Vec<u8> {
let mut expected = Vec::new();
&prost_types::FileDescriptorSet::decode(REFLECTION_SERVICE_DESCRIPTOR)
prost_types::FileDescriptorSet::decode(REFLECTION_SERVICE_DESCRIPTOR)
.expect("decode reflection service file descriptor set")
.file[0]
.encode(&mut expected)