Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add conversion from Error to Box<dyn StdError + Send + Sync> #12

Merged
merged 1 commit into from
Oct 8, 2019

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Oct 8, 2019

impl From<Error> for Box<dyn StdError + Send + Sync + 'static> {...}

The conversion is free — the returned Box is the same allocation as the one inside Error.

Fixes #10.

@dtolnay dtolnay merged commit bc446d8 into master Oct 8, 2019
@dtolnay dtolnay deleted the boxed branch October 8, 2019 18:08
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.

Is it possible to go back to an Box<dny Error>?
1 participant