Skip to content

Commit 310d5a2

Browse files
committed
Refactor
1 parent ee0ed10 commit 310d5a2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ fn run() -> Result<(), Box<dyn Error>> {
7575
.clang_arg(format!("-I{}", llvm_config("--includedir")?))
7676
.default_enum_style(bindgen::EnumVariation::ModuleConsts)
7777
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
78-
.generate()
79-
.unwrap()
78+
.generate()?
8079
.write_to_file(Path::new(&env::var("OUT_DIR")?).join("bindings.rs"))?;
8180

8281
Ok(())

0 commit comments

Comments
 (0)