Skip to content

chore: improve anyhow maintenance path#448

Closed
vip892766gma wants to merge 1 commit into
dtolnay:masterfrom
vip892766gma:maint/20260521165909
Closed

chore: improve anyhow maintenance path#448
vip892766gma wants to merge 1 commit into
dtolnay:masterfrom
vip892766gma:maint/20260521165909

Conversation

@vip892766gma

Copy link
Copy Markdown

Summary:

  • Add edge-case unit tests for Error::chain() iterator behavior on deeply nested contexts and for context() applied to Result<T, E> where E already implements std::error::Error with a custom Display, verifying the chain order and that downcast_ref still finds the innermost source. Tests-only change, no behavior modification.
  • Keep the change narrow so it is straightforward to review.

Notes:

  • I kept this scoped to the relevant implementation and tests.

@dtolnay dtolnay left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I think this functionality is covered well enough by the existing tests.

@dtolnay dtolnay closed this May 21, 2026
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