We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71381d8 commit 695c7d5Copy full SHA for 695c7d5
drv/cosmo-hf/src/apob.rs
@@ -609,9 +609,7 @@ impl ApobState {
609
for i in (0..data.len()).step_by(PAGE_SIZE_BYTES) {
610
// Read data from the lease into local storage
611
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();
+ let addr = read_slot.flash_addr(i as u32 + offset).unwrap_lite();
615
616
// Read back the current data, then write it to the lease
617
drv.flash_read(addr, &mut &mut out_buf[..n])
0 commit comments