Skip to content

Commit

Permalink
move error macros together
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Feb 18, 2024
1 parent ad91711 commit 31bb4b0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/macros.rs
Expand Up @@ -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")]
Expand Down Expand Up @@ -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`"
)
};
}

0 comments on commit 31bb4b0

Please sign in to comment.