Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tkeksa committed Oct 11, 2023
1 parent 2ece704 commit 6f512d2
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 @@ -148,7 +148,7 @@ fn main() -> Result<(), io::Error> {
// find EEPROM
let devs = find_i2c_devs();
let eeproms = find_eeproms(&devs);
if let Some(&i) = eeproms.get(0) {
if let Some(&i) = eeproms.first() {
i
} else {
eprintln!("EEPROM not found");
Expand Down

0 comments on commit 6f512d2

Please sign in to comment.