From f8ab4b543e6b0a7c872a13c709117ac8a86c8100 Mon Sep 17 00:00:00 2001 From: kevaundray Date: Wed, 14 Aug 2024 12:29:29 +0100 Subject: [PATCH] remove TODO for checking for success (#185) --- bindings/csharp/rust_code/build.rs | 2 +- bindings/java/rust_code/build.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/bindings/csharp/rust_code/build.rs b/bindings/csharp/rust_code/build.rs index e3156383..5e108c89 100644 --- a/bindings/csharp/rust_code/build.rs +++ b/bindings/csharp/rust_code/build.rs @@ -25,7 +25,7 @@ fn main() { .csharp_class_name("NativeMethods") .csharp_use_nint_types(false) .generate_csharp_file(path_to_output_file) - .unwrap(); + .expect("csharp bindgen failed to generate bindgen file"); } fn path_to_bindings_folder() -> PathBuf { diff --git a/bindings/java/rust_code/build.rs b/bindings/java/rust_code/build.rs index 4813ce1d..1bf0cfde 100644 --- a/bindings/java/rust_code/build.rs +++ b/bindings/java/rust_code/build.rs @@ -25,7 +25,6 @@ fn main() { } let output = command.output().unwrap(); - // TODO: check if we need this in other build.rs scripts if !output.status.success() { let output = std::str::from_utf8(&output.stderr).unwrap(); panic!("{}", output)