From 679e63930b400c503ebd31536f12f9a0034ba1fe Mon Sep 17 00:00:00 2001 From: Kyle Mayes Date: Wed, 3 Jan 2024 05:59:34 -0500 Subject: [PATCH] Fix bindgen deprecation notice --- bindgen-test/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindgen-test/build.rs b/bindgen-test/build.rs index 9cff7ac36..fe2114ae8 100644 --- a/bindgen-test/build.rs +++ b/bindgen-test/build.rs @@ -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"))