Skip to content

Commit

Permalink
🧹 make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
vnepogodin committed Dec 18, 2023
1 parent 52feb65 commit 6d19a67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libpci-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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_.*")
Expand Down
2 changes: 1 addition & 1 deletion src/console_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Profile>) {
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;
Expand Down

0 comments on commit 6d19a67

Please sign in to comment.