From b94c78545b2678a337b9c9b04e9f21759235b868 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Tue, 3 May 2022 21:02:22 -0700 Subject: [PATCH] protos: use `run_from_script()` in `build.rs` `run_from_script()` is effectively the same as we did with `.expect()` (print the error to stderr and exit with an error). --- lib/build.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/build.rs b/lib/build.rs index d08cd6eb5..d8cd3a544 100644 --- a/lib/build.rs +++ b/lib/build.rs @@ -36,8 +36,7 @@ fn main() { .inputs(input) .include("src/protos") .cargo_out_dir("protos") - .run() - .expect("protoc"); + .run_from_script(); println!("cargo:rerun-if-changed=build.rs"); for file in input { println!("cargo:rerun-if-changed={}", file);