Skip to content

Commit dc9ce58

Browse files
committed
trivial: Use first instead of get(0)
See: https://rust-lang.github.io/rust-clippy/master/index.html#get_first Signed-off-by: Daniel Schaefer <[email protected]>
1 parent f1dad52 commit dc9ce58

File tree

1 file changed

+1
-1
lines changed
  • framework_lib/src/commandline

1 file changed

+1
-1
lines changed

framework_lib/src/commandline/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ fn compare_version(device: Option<HardwareDeviceType>, version: String, ec: &Cro
516516

517517
if let Some(smbios) = get_smbios() {
518518
let bios_entries = smbios.collect::<SMBiosInformation>();
519-
let bios = bios_entries.get(0).unwrap();
519+
let bios = bios_entries.first().unwrap();
520520

521521
if device == Some(HardwareDeviceType::BIOS) {
522522
println!("Comparing BIOS version {:?}", bios.version().to_string());

0 commit comments

Comments
 (0)