chore: Fix clippy lint (#1181)

This commit is contained in:
tottoto
2022-12-13 11:29:29 -05:00
committed by GitHub
parent 3076e8251e
commit 2dd09c02bd
23 changed files with 98 additions and 62 deletions
+1 -1
View File
@@ -13,5 +13,5 @@ prost = "0.11"
tonic = { path = "../../tonic" }
[build-dependencies]
prost-build = "0.11"
prost-build = "0.11.4"
tonic-build = { path = "../../tonic-build" }
+1 -1
View File
@@ -1,6 +1,6 @@
fn main() {
let mut config = prost_build::Config::default();
config.disable_comments(&["test.Input1", "test.Output1"]);
config.disable_comments(["test.Input1", "test.Output1"]);
tonic_build::configure()
.disable_comments("test.Service1")
.disable_comments("test.Service1.Rpc1")
+1 -1
View File
@@ -12,4 +12,4 @@ version = "0.1.0"
bytes = "1.0"
prost = "0.11"
[build-dependencies]
prost-build = "0.11"
prost-build = "0.11.4"
+1 -1
View File
@@ -17,7 +17,7 @@ async fn status_from_server_stream_with_source() {
&self,
_: Request<InputStream>,
) -> Result<Response<Self::StreamCallStream>, Status> {
let s = Unsync(0 as *mut ());
let s = Unsync(std::ptr::null_mut::<()>());
Ok(Response::new(Box::pin(s) as Self::StreamCallStream))
}
+1
View File
@@ -1,3 +1,4 @@
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Animal {
#[prost(string, optional, tag = "1")]
+1 -1
View File
@@ -16,5 +16,5 @@ prost = "0.11"
tonic = {path = "../../tonic"}
[build-dependencies]
prost-build = "0.11"
prost-build = "0.11.4"
tonic-build = {path = "../../tonic-build"}