Skip to content

Commit 9b5b800

Browse files
committed
Update tutorial-3.md
This reverts rust-lang#2955 `new()` works with bindgen 0.71 and the previous code produced a Deprecation warning
1 parent 1c4ec52 commit 9b5b800

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
@@ -30,7 +30,7 @@ fn main() {
3030
.header("wrapper.h")
3131
// Tell cargo to invalidate the built crate whenever any of the
3232
// included header files changed.
33-
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
33+
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
3434
// Finish the builder and generate the bindings.
3535
.generate()
3636
// Unwrap the Result and panic on failure.

0 commit comments

Comments
 (0)