Skip to content

Commit a8fa942

Browse files
LuncyBloontemilio
authored andcommitted
Use CargoCallbacks::new() instead of bindgen::CargoCallbacks in the example code
1 parent c0ebd68 commit a8fa942

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/src/tutorial-3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fn main() {
3333
.header("wrapper.h")
3434
// Tell cargo to invalidate the built crate whenever any of the
3535
// included header files changed.
36-
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
36+
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
3737
// Finish the builder and generate the bindings.
3838
.generate()
3939
// Unwrap the Result and panic on failure.

0 commit comments

Comments
 (0)