From 31bb4b0ff36e458c6bef304a336b71f6342ddcc7 Mon Sep 17 00:00:00 2001 From: KodrAus Date: Mon, 19 Feb 2024 07:41:02 +1000 Subject: [PATCH] move error macros together --- src/macros.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/macros.rs b/src/macros.rs index ccccd5bd6..6297eb853 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -310,17 +310,6 @@ macro_rules! __log_value { }; } -#[doc(hidden)] -#[macro_export] -#[cfg(not(feature = "kv_std"))] -macro_rules! __log_value_error { - ($args:expr) => { - compile_error!( - "capturing values as `std::error::Error` requites the `kv_std` feature of `log`" - ) - }; -} - #[doc(hidden)] #[macro_export] #[cfg(feature = "kv_sval")] @@ -367,3 +356,14 @@ macro_rules! __log_value_error { $crate::__private_api::capture_error(&$args) }; } + +#[doc(hidden)] +#[macro_export] +#[cfg(not(feature = "kv_std"))] +macro_rules! __log_value_error { + ($args:expr) => { + compile_error!( + "capturing values as `std::error::Error` requites the `kv_std` feature of `log`" + ) + }; +}