Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

error: enable core::error::Error for all error payloads #693

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

Merged
phip1611 merged 2 commits into rust-osdev:main from phip1611:error-display
Mar 12, 2023

Conversation

Copy link
Member

@phip1611 phip1611 commented Mar 12, 2023

Implements a solution for the discussion in #691.

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

GabrielMajeri reacted with thumbs up emoji
@phip1611 phip1611 self-assigned this Mar 12, 2023
@phip1611 phip1611 linked an issue Mar 12, 2023 that may be closed by this pull request
@phip1611 phip1611 changed the title (削除) Error display (削除ここまで) (追記) error: enable core::error::Error for all error payloads (追記ここまで) Mar 12, 2023
Copy link
Member

@nicholasbishop nicholasbishop left a comment

Choose a reason for hiding this comment

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

This seems like a good solution to me. Should probably mention in the changelog that Error's Data parameter is no longer required to implement Display.

phip1611 reacted with thumbs up emoji
Copy link
Member Author

phip1611 commented Mar 12, 2023
edited
Loading

I've added another commit because I think the current doc comment doesn't reflect the usage
well. What do you think?

Copy link
Member

@nicholasbishop nicholasbishop left a comment

Choose a reason for hiding this comment

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

lgtm

@phip1611 phip1611 merged commit 905c176 into rust-osdev:main Mar 12, 2023
@phip1611 phip1611 deleted the error-display branch March 12, 2023 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@nicholasbishop nicholasbishop nicholasbishop approved these changes

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Error trait for type Error<Data> where Data is not Display

AltStyle によって変換されたページ (->オリジナル) /