From c4e1505a7bb2f1f556b653b180fef972fa12ae79 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Wed, 26 Jan 2022 17:21:55 +0100 Subject: [PATCH] keyprovider: Temporary fix for nightly builds Do not autogenerate keyprovider.rs and patch it until https://github.com/hyperium/tonic/pull/892 is merged Signed-off-by: Samuel Ortiz --- build.rs | 8 ++++---- src/utils/keyprovider.rs | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/build.rs b/build.rs index e196fd6..376471a 100644 --- a/build.rs +++ b/build.rs @@ -4,9 +4,9 @@ extern crate tonic_build; fn main() -> Result<(), Box> { - tonic_build::configure() - .build_server(true) - .out_dir("src/utils/") - .compile(&["src/utils/proto/keyprovider.proto"], &["src/utils"])?; + // tonic_build::configure() + // .build_server(true) + // .out_dir("src/utils/") + // .compile(&["src/utils/proto/keyprovider.proto"], &["src/utils"])?; Ok(()) } diff --git a/src/utils/keyprovider.rs b/src/utils/keyprovider.rs index d12ce43..c481f8e 100644 --- a/src/utils/keyprovider.rs +++ b/src/utils/keyprovider.rs @@ -59,11 +59,13 @@ pub mod key_provider_service_client { #[doc = r""] #[doc = r" This requires the server to support it otherwise it might respond with an"] #[doc = r" error."] + #[must_use] pub fn send_gzip(mut self) -> Self { self.inner = self.inner.send_gzip(); self } #[doc = r" Enable decompressing responses with `gzip`."] + #[must_use] pub fn accept_gzip(mut self) -> Self { self.inner = self.inner.accept_gzip(); self