Skip to content

Commit 2d293e6

Browse files
tshepangemilio
authored andcommitted
stop using deprecated type
1 parent 4f78afa commit 2d293e6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bindgen-integration/build.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ extern crate cc;
44
use bindgen::callbacks::{
55
DeriveInfo, IntKind, MacroParsingBehavior, ParseCallbacks,
66
};
7-
use bindgen::{Builder, CargoCallbacks, EnumVariation, Formatter};
7+
use bindgen::{Builder, EnumVariation, Formatter};
88
use std::collections::HashSet;
99
use std::env;
1010
use std::path::PathBuf;
@@ -234,7 +234,9 @@ fn setup_wrap_static_fns_test() {
234234
// generate external bindings with the external .c and .h files
235235
let bindings = Builder::default()
236236
.header(input_header_file_path_str)
237-
.parse_callbacks(Box::new(CargoCallbacks))
237+
.parse_callbacks(Box::new(
238+
bindgen::CargoCallbacks::new().rerun_on_header_files(true),
239+
))
238240
.parse_callbacks(Box::new(WrappedVaListCallback))
239241
.wrap_static_fns(true)
240242
.wrap_static_fns_path(

0 commit comments

Comments
 (0)