Skip to content

Commit da4d1f4

Browse files
bryantbiggsmxpv
authored andcommitted
fix: Replace tonic deprecated methods to fix clippy warnings
1 parent ece6516 commit da4d1f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/client/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ fn main() {
7070

7171
tonic_build::configure()
7272
.build_server(false)
73-
.compile_with_config(config, PROTO_FILES, &["vendor/"])
73+
.compile_protos_with_config(config, PROTO_FILES, &["vendor/"])
7474
.expect("Failed to generate GRPC bindings");
7575

7676
for module in FIXUP_MODULES {

crates/snapshots/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const FIXUP_MODULES: &[&str] = &["containerd.services.snapshots.v1"];
2626
fn main() {
2727
tonic_build::configure()
2828
.build_server(true)
29-
.compile(PROTO_FILES, &["vendor/"])
29+
.compile_protos(PROTO_FILES, &["vendor/"])
3030
.expect("Failed to generate GRPC bindings");
3131

3232
for module in FIXUP_MODULES {

0 commit comments

Comments
 (0)