From cbc67469d3faa65c4839657609b8e804bcfd75fd Mon Sep 17 00:00:00 2001 From: David Flemström Date: Fri, 28 Jun 2024 19:10:59 +0200 Subject: Route sources of panics to the crate's fmt macros --- embassy-boot/src/test_flash/asynch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'embassy-boot/src') 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 } fn create_partition(mutex: &Mutex) -> Partition { - Partition::new(mutex, 0, mutex.try_lock().unwrap().capacity() as u32) + Partition::new(mutex, 0, unwrap!(mutex.try_lock()).capacity() as u32) } } -- cgit