diff --git a/libpci-sys/build.rs b/libpci-sys/build.rs index d126f5b..f9ad24a 100644 --- a/libpci-sys/build.rs +++ b/libpci-sys/build.rs @@ -19,7 +19,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())) .size_t_is_usize(true) .use_core() .allowlist_function("pci_.*") diff --git a/src/console_writer.rs b/src/console_writer.rs index 27f563e..eace250 100644 --- a/src/console_writer.rs +++ b/src/console_writer.rs @@ -99,7 +99,7 @@ pub fn list_profiles(profiles: &[Profile], header_msg: &str) { println!("{table}\n"); } -pub fn print_installed_profiles(device_type: &str, installed_profiles: &Vec) { +pub fn print_installed_profiles(device_type: &str, installed_profiles: &[Profile]) { if installed_profiles.is_empty() { print_warning(&fl!("no-installed-profile-device", device_type = device_type)); return;