From 6d19a675fda7d2178c3a9a169a512c5e192ce87b Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Mon, 18 Dec 2023 14:30:06 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20make=20clippy=20happy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libpci-sys/build.rs | 2 +- src/console_writer.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;