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`" + ) + }; +}