From ca2ff632bad91acb4b890aed6e05a35ca1927ee1 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Tue, 1 Dec 2020 20:00:55 +0100 Subject: [PATCH] Fix possibly ambiguous macro --- embassy-nrf/src/fmt.rs | 2 +- embassy/src/fmt.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,)*); } } }