From 2dbd5b1611f3d7d0dcdf45489574edf34d5db4f7 Mon Sep 17 00:00:00 2001 From: LeoniePhiline <22329650+LeoniePhiline@users.noreply.github.com> Date: Fri, 28 Jun 2024 23:41:02 +0200 Subject: [PATCH] chore!: remove alias exports `DefaultContext` and `EyreContext` `DefaultContext` and `EyreContext` exist as alias exports enabled by the `anyhow` feature. However, they are unused within `eyre`; neither are handlers of such names exposed by `anyhow`. This changeset removes both handler aliases. Closes [#135][135]. [135]: https://github.com/eyre-rs/eyre/issues/135 BREAKING CHANGE: The alias exports are undocumented but nevertheless part of the crate's public API. --- eyre/src/lib.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/eyre/src/lib.rs b/eyre/src/lib.rs index 93ec747..96914e4 100644 --- a/eyre/src/lib.rs +++ b/eyre/src/lib.rs @@ -389,12 +389,6 @@ pub use eyre as format_err; pub use eyre as anyhow; use once_cell::sync::OnceCell; use ptr::OwnedPtr; -#[cfg(feature = "anyhow")] -#[doc(hidden)] -pub use DefaultHandler as DefaultContext; -#[cfg(feature = "anyhow")] -#[doc(hidden)] -pub use EyreHandler as EyreContext; #[doc(hidden)] pub use Report as ErrReport; /// Compatibility re-export of `Report` for interop with `anyhow`