Skip to content

Commit

Permalink
Update tutorial-3.md
Browse files Browse the repository at this point in the history
This reverts rust-lang#2955
`new()` works with bindgen 0.71 and the previous code produced a Deprecation warning
  • Loading branch information
mart-e committed Dec 9, 2024
1 parent 1c4ec52 commit 9b5b800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/src/tutorial-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn main() {
.header("wrapper.h")
// Tell cargo to invalidate the built crate whenever any of the
// included header files changed.
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
// Finish the builder and generate the bindings.
.generate()
// Unwrap the Result and panic on failure.
Expand Down

0 comments on commit 9b5b800

Please sign in to comment.