Skip to content

Commit 827b693

Browse files
committed
Use CargoCallbacks::new() in the book
1 parent c0ebd68 commit 827b693

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

book/src/non-system-libraries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ fn main() {
9191
.header(headers_path_str)
9292
// Tell cargo to invalidate the built crate whenever any of the
9393
// included header files changed.
94-
.parse_callbacks(Box::new(CargoCallbacks))
94+
.parse_callbacks(Box::new(CargoCallbacks::new()))
9595
// Finish the builder and generate the bindings.
9696
.generate()
9797
// Unwrap the Result and panic on failure.

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)