Skip to content

Commit 0917399

Browse files
attilarepkaemilio
authored andcommitted
docs(book): fix deprecated bindgen constant in example
1 parent 3e0094e commit 0917399

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

book/src/non-system-libraries.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ library:
2020
use std::env;
2121
use std::path::PathBuf;
2222
23-
use bindgen::CargoCallbacks;
24-
2523
fn main() {
2624
// This is the directory where the `c` library is located.
2725
let libdir_path = PathBuf::from("hello")
@@ -86,7 +84,7 @@ fn main() {
8684
.header(headers_path_str)
8785
// Tell cargo to invalidate the built crate whenever any of the
8886
// included header files changed.
89-
.parse_callbacks(Box::new(CargoCallbacks::new()))
87+
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
9088
// Finish the builder and generate the bindings.
9189
.generate()
9290
// Unwrap the Result and panic on failure.

0 commit comments

Comments
 (0)