Skip to content

Commit 42e1d88

Browse files
authored
Merge pull request #35 from quic-kdybcio/topic/clippy_wrn_fix
treewide: Clippy fixes
2 parents d2fe890 + ef82fbb commit 42e1d88

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

cli/src/flasher.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,9 @@ pub(crate) fn run_flash<T: QdlChan>(
5353
}
5454

5555
// Mark the correct LUN (or any other kind of physical partition) as bootable
56-
if bootable_part_idx.is_some() {
57-
println!(
58-
"Setting partition {} as bootable!",
59-
bootable_part_idx.unwrap()
60-
);
61-
firehose_set_bootable(channel, bootable_part_idx.unwrap())?;
56+
if let Some(bootable_part_idx) = bootable_part_idx {
57+
println!("Setting partition {} as bootable!", bootable_part_idx);
58+
firehose_set_bootable(channel, bootable_part_idx)?;
6259
}
6360

6461
Ok(())

qramdump/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::str::FromStr;
44

55
use anyhow::{Result, bail};
66

7-
use clap::{Parser, command};
7+
use clap::Parser;
88
use qdl::{
99
self,
1010
sahara::{SaharaMode, sahara_reset, sahara_run},

0 commit comments

Comments
 (0)