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

fix(protocol): add StdError impl for Box<dyn Diagnostic + Send + Sync> #273

Merged
merged 2 commits into from
Jun 29, 2023

Conversation

bennetthardwick
Copy link
Contributor

Adds std::error::Error impls for Box<dyn Diagnostic + Send + Sync> (and other variants).

Fixes #272.

@@ -0,0 +1,69 @@
use std::sync::Arc;

use miette::{miette, Diagnostic, Report};
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like tests are failing because of this Report being unused.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, fixed!

@zkat zkat merged commit 2e3e5c9 into zkat:main Jun 29, 2023
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.

#[source] does not work on Box<dyn Error + Send + Sync>
2 participants