Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ All significant changes to this project will be documented in this file.

## Unreleased

### New Features

* `Exn<E>` now implements `.into_error()`, allowing to recover the top-level error with move semantics.

## v0.3.0 (2026-01-31)

### Breaking Changes
Expand Down
4 changes: 0 additions & 4 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ path = "src/from-anyhow.rs"
name = "into-anyhow"
path = "src/into-anyhow.rs"

[[example]]
name = "into-error"
path = "src/into-error.rs"

[[example]]
name = "into-std-error"
path = "src/into-std-error.rs"
Expand Down
104 changes: 0 additions & 104 deletions examples/src/into-error.rs

This file was deleted.

5 changes: 0 additions & 5 deletions exn/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,6 @@ impl<E: Error + Send + Sync + 'static> Exn<E> {
pub fn frame(&self) -> &Frame {
&self.frame
}

/// Extract the top-level error using move semantics
pub fn into_error(self) -> E {
*self.frame.error.downcast().expect("error type must match")
}
}

impl<E> Deref for Exn<E>
Expand Down