Skip to content

Add HandlerError::from_boxed#301

Merged
prokopyl merged 1 commit into
RustAudio:nextfrom
BillyDM:handler_error
Jul 25, 2026
Merged

Add HandlerError::from_boxed#301
prokopyl merged 1 commit into
RustAudio:nextfrom
BillyDM:handler_error

Conversation

@BillyDM

@BillyDM BillyDM commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

I found there was no easy way to create a HandlerError from an already boxed error.

Until Rust gets negative traits, we can't have an impl From<Box<dyn Error>> for HandlerError implementation. So for now I just added a from_boxed method.

There were also a couple of places with unecessary 'static labels (Box already implies that the contents are 'static), so I removed them.

@prokopyl prokopyl changed the title add HandlerError::from_boxed Add HandlerError::from_boxed Jul 25, 2026
@prokopyl
prokopyl merged commit a5b6efd into RustAudio:next Jul 25, 2026
7 checks passed
@prokopyl

Copy link
Copy Markdown
Member

Good points, thank you for the PR! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants