diff options
Diffstat (limited to 'embassy-boot/src/test_flash/asynch.rs')
| -rw-r--r-- | embassy-boot/src/test_flash/asynch.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-boot/src/test_flash/asynch.rs b/embassy-boot/src/test_flash/asynch.rs index 3ac9e71ab..c67f2495c 100644 --- a/embassy-boot/src/test_flash/asynch.rs +++ b/embassy-boot/src/test_flash/asynch.rs | |||
| @@ -43,7 +43,7 @@ where | |||
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | fn create_partition<T: NorFlash>(mutex: &Mutex<NoopRawMutex, T>) -> Partition<NoopRawMutex, T> { | 45 | fn create_partition<T: NorFlash>(mutex: &Mutex<NoopRawMutex, T>) -> Partition<NoopRawMutex, T> { |
| 46 | Partition::new(mutex, 0, mutex.try_lock().unwrap().capacity() as u32) | 46 | Partition::new(mutex, 0, unwrap!(mutex.try_lock()).capacity() as u32) |
| 47 | } | 47 | } |
| 48 | } | 48 | } |
| 49 | 49 | ||
