Fix use of deprecated object from bindgen

This commit is contained in:
Stephen Seo 2023-11-28 15:02:09 +09:00
parent d0beff5a98
commit d457098f2a

View file

@ -14,7 +14,7 @@ fn main() {
let bindings = bindgen::Builder::default() let bindings = bindgen::Builder::default()
.header("src/bindgen_wrapper.h") .header("src/bindgen_wrapper.h")
.parse_callbacks(Box::new(bindgen::CargoCallbacks)) .parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
.generate() .generate()
.expect("Unable to generate bindings"); .expect("Unable to generate bindings");