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(chain): correct Chain structure exported #102

Merged
merged 2 commits into from
Jan 8, 2022
Merged

Conversation

tailhook
Copy link
Contributor

@tailhook tailhook commented Jan 7, 2022

This fixes all current compiler and clippy warnings.

It looks like wrong Chain type was exported. This is technically could be seemed as a breaking change, but in reality should not break anyone since that type was not used and could not be created I think.

This fixes all current complier and clippy warnings.
@tailhook tailhook mentioned this pull request Jan 7, 2022
src/lib.rs Outdated
@@ -4,6 +4,7 @@

pub use miette_derive::*;

pub use chain::*;
Copy link
Owner

Choose a reason for hiding this comment

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

Is this necessary?

Copy link
Contributor Author

@tailhook tailhook Jan 8, 2022

Choose a reason for hiding this comment

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

Yes, I think exporting named opaque type in chain method is better than returning a private type.

Alternative is to change chain to return impl Something.

@zkat zkat merged commit 52e5ec8 into zkat:main Jan 8, 2022
@tailhook tailhook deleted the fix_warnings branch January 8, 2022 13:31
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