diff --git a/embassy-nrf/src/fmt.rs b/embassy-nrf/src/fmt.rs index 93dda67d..4dfba6ac 100644 --- a/embassy-nrf/src/fmt.rs +++ b/embassy-nrf/src/fmt.rs @@ -74,7 +74,7 @@ macro_rules! unwrap { match $crate::fmt::Try::into_result($arg) { ::core::result::Result::Ok(t) => t, ::core::result::Result::Err(e) => { - panic!($($msg,)*); + ::core::panic!($($msg,)*); } } } diff --git a/embassy/src/fmt.rs b/embassy/src/fmt.rs index 93dda67d..4dfba6ac 100644 --- a/embassy/src/fmt.rs +++ b/embassy/src/fmt.rs @@ -74,7 +74,7 @@ macro_rules! unwrap { match $crate::fmt::Try::into_result($arg) { ::core::result::Result::Ok(t) => t, ::core::result::Result::Err(e) => { - panic!($($msg,)*); + ::core::panic!($($msg,)*); } } }