Skip to content

Commit 32dac71

Browse files
author
Samuel Ortiz
committed
keyprovider: Temporary fix for nightly builds
Do not autogenerate keyprovider.rs and patch it until hyperium/tonic#892 is merged Signed-off-by: Samuel Ortiz <s.ortiz@apple.com>
1 parent b08f8c7 commit 32dac71

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

build.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
extern crate tonic_build;
55

66
fn main() -> Result<(), Box<dyn std::error::Error>> {
7-
tonic_build::configure()
8-
.build_server(true)
9-
.out_dir("src/utils/")
10-
.compile(&["src/utils/proto/keyprovider.proto"], &["src/utils"])?;
7+
// tonic_build::configure()
8+
// .build_server(true)
9+
// .out_dir("src/utils/")
10+
// .compile(&["src/utils/proto/keyprovider.proto"], &["src/utils"])?;
1111
Ok(())
1212
}

src/utils/keyprovider.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@ pub mod key_provider_service_client {
5959
#[doc = r""]
6060
#[doc = r" This requires the server to support it otherwise it might respond with an"]
6161
#[doc = r" error."]
62+
#[must_use]
6263
pub fn send_gzip(mut self) -> Self {
6364
self.inner = self.inner.send_gzip();
6465
self
6566
}
6667
#[doc = r" Enable decompressing responses with `gzip`."]
68+
#[must_use]
6769
pub fn accept_gzip(mut self) -> Self {
6870
self.inner = self.inner.accept_gzip();
6971
self

0 commit comments

Comments
 (0)