File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff 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 ( ( ) )
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use std::str::FromStr;
44
55use anyhow:: { Result , bail} ;
66
7- use clap:: { Parser , command } ;
7+ use clap:: Parser ;
88use qdl:: {
99 self ,
1010 sahara:: { SaharaMode , sahara_reset, sahara_run} ,
You can’t perform that action at this time.
0 commit comments