Fix possibly ambiguous macro

This commit is contained in:
Dario Nieuwenhuis 2020-12-01 20:00:55 +01:00
parent 02af635e7b
commit ca2ff632ba
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ macro_rules! unwrap {
match $crate::fmt::Try::into_result($arg) { match $crate::fmt::Try::into_result($arg) {
::core::result::Result::Ok(t) => t, ::core::result::Result::Ok(t) => t,
::core::result::Result::Err(e) => { ::core::result::Result::Err(e) => {
panic!($($msg,)*); ::core::panic!($($msg,)*);
} }
} }
} }

View File

@ -74,7 +74,7 @@ macro_rules! unwrap {
match $crate::fmt::Try::into_result($arg) { match $crate::fmt::Try::into_result($arg) {
::core::result::Result::Ok(t) => t, ::core::result::Result::Ok(t) => t,
::core::result::Result::Err(e) => { ::core::result::Result::Err(e) => {
panic!($($msg,)*); ::core::panic!($($msg,)*);
} }
} }
} }