chore: Fix clippy lint (#1181)
This commit is contained in:
@@ -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,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")
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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,3 +1,4 @@
|
||||
#[allow(clippy::derive_partial_eq_without_eq)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct Animal {
|
||||
#[prost(string, optional, tag = "1")]
|
||||
|
||||
@@ -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"}
|
||||
|
||||
Reference in New Issue
Block a user