From 2191ed1a3bdca09158afd8e96fb979e570be5fe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Thu, 17 Aug 2023 10:07:51 +0200 Subject: [PATCH] Remove use of internal log macros These macros where removed in https://github.com/rust-lang/log/pull/570. Since 0.4.20, they have been replaced by the ones from the standard library. We can also use the ones from the standard library. --- src/macros.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/macros.rs b/src/macros.rs index 9a6328f..3978e46 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -7,16 +7,16 @@ macro_rules! try_log { let lvl = $lvl; if lvl <= $crate::log::STATIC_MAX_LEVEL && lvl <= $crate::log::max_level() { $crate::__private_api_try_log( - $crate::log::__log_format_args!($($arg)+), + ::core::format_args!($($arg)+), lvl, - &($target, $crate::log::__log_module_path!(), $crate::log::__log_file!(), $crate::log::__log_line!()), + &($target, ::core::module_path!(), ::core::file!(), ::core::line!()), ) } else { Ok(()) } }); - ($lvl:expr, $($arg:tt)+) => ($crate::try_log!(target: $crate::log::__log_module_path!(), $lvl, $($arg)+)) + ($lvl:expr, $($arg:tt)+) => ($crate::try_log!(target: ::core::module_path!(), $lvl, $($arg)+)) } #[macro_export]