Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ventureoo committed Aug 19, 2024
1 parent ba3af96 commit cafea79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fn perceed_autoconf(
autoconf_driver_type: &mut DriverType,
) -> anyhow::Result<()> {
if let Some(values) = args {
let device_type = values.get(0).unwrap_or(&String::from("pci")).to_string();
let device_type = values.first().unwrap_or(&String::from("pci")).to_string();
let driver_type = values.get(1).unwrap_or(&String::from("both")).to_string();
let class_id = values.get(2).unwrap_or(&String::from("any")).to_lowercase();

Expand Down

0 comments on commit cafea79

Please sign in to comment.