Skip to content

Commit

Permalink
Fix bindgen deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleMayes committed Jan 3, 2024
1 parent 3500a61 commit 679e639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindgen-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fn main() {
let out = PathBuf::from(env::var("OUT_DIR").unwrap());
bindgen::Builder::default()
.header("wrapper.h")
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
.generate()
.expect("Unable to generate bindings!")
.write_to_file(out.join("bindings.rs"))
Expand Down

0 comments on commit 679e639

Please sign in to comment.