Skip to content

Commit 695c7d5

Browse files
committed
clippyyyyyy
1 parent 71381d8 commit 695c7d5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drv/cosmo-hf/src/apob.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -609,9 +609,7 @@ impl ApobState {
609609
for i in (0..data.len()).step_by(PAGE_SIZE_BYTES) {
610610
// Read data from the lease into local storage
611611
let n = (data.len() - i).min(PAGE_SIZE_BYTES);
612-
let addr = read_slot
613-
.flash_addr(u32::try_from(i as u32 + offset).unwrap_lite())
614-
.unwrap_lite();
612+
let addr = read_slot.flash_addr(i as u32 + offset).unwrap_lite();
615613

616614
// Read back the current data, then write it to the lease
617615
drv.flash_read(addr, &mut &mut out_buf[..n])

0 commit comments

Comments
 (0)