Skip to content

Commit 31bb4b0

Browse files
committed
move error macros together
1 parent ad91711 commit 31bb4b0

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/macros.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -310,17 +310,6 @@ macro_rules! __log_value {
310310
};
311311
}
312312

313-
#[doc(hidden)]
314-
#[macro_export]
315-
#[cfg(not(feature = "kv_std"))]
316-
macro_rules! __log_value_error {
317-
($args:expr) => {
318-
compile_error!(
319-
"capturing values as `std::error::Error` requites the `kv_std` feature of `log`"
320-
)
321-
};
322-
}
323-
324313
#[doc(hidden)]
325314
#[macro_export]
326315
#[cfg(feature = "kv_sval")]
@@ -367,3 +356,14 @@ macro_rules! __log_value_error {
367356
$crate::__private_api::capture_error(&$args)
368357
};
369358
}
359+
360+
#[doc(hidden)]
361+
#[macro_export]
362+
#[cfg(not(feature = "kv_std"))]
363+
macro_rules! __log_value_error {
364+
($args:expr) => {
365+
compile_error!(
366+
"capturing values as `std::error::Error` requites the `kv_std` feature of `log`"
367+
)
368+
};
369+
}

0 commit comments

Comments
 (0)