Skip to content

Commit 19d39c8

Browse files
committed
Requested changes
1 parent 2871181 commit 19d39c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/astria-eyre/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ use std::{
55
fmt::Write as _,
66
};
77

8+
#[cfg(feature = "anyhow")]
9+
pub use anyhow;
810
#[cfg(feature = "anyhow")]
911
pub use anyhow_conversion::{
10-
anyhow,
1112
anyhow_to_eyre,
1213
eyre_to_anyhow,
1314
};
@@ -92,8 +93,6 @@ fn write_value(err: &dyn Error, f: &mut core::fmt::Formatter<'_>) -> core::fmt::
9293

9394
#[cfg(feature = "anyhow")]
9495
mod anyhow_conversion {
95-
pub use anyhow;
96-
9796
pub fn anyhow_to_eyre(anyhow_error: anyhow::Error) -> eyre::Report {
9897
let boxed: Box<dyn std::error::Error + Send + Sync> = anyhow_error.into();
9998
eyre::eyre!(boxed)
@@ -105,6 +104,7 @@ mod anyhow_conversion {
105104
anyhow::anyhow!(boxed)
106105
}
107106

107+
#[cfg(test)]
108108
mod test {
109109
#[test]
110110
fn anyhow_to_eyre_preserves_source_chain() {

0 commit comments

Comments
 (0)