Skip to content

nostr: remove UnwrapInfallible trait - #1464

Open
TheAwiteb wants to merge 1 commit into
nostrdevkit:masterfrom
TheAwiteb:remove-UnwrapInfallible
Open

nostr: remove UnwrapInfallible trait#1464
TheAwiteb wants to merge 1 commit into
nostrdevkit:masterfrom
TheAwiteb:remove-UnwrapInfallible

Conversation

@TheAwiteb

Copy link
Copy Markdown
Member

Replace UnwrapInfallible with explicit let Ok and match patterns. This removes the need for a custom trait and ensures any future change in the error type will cause a compile error.

Checklist

  • I followed the contribution guidelines
  • I updated the relevant CHANGELOG.md (if applicable)
  • I understand and can explain all code in this PR

Replace `UnwrapInfallible` with explicit `let Ok` and `match` patterns.
This removes the need for a custom trait and ensures any future change
in the error type will cause a compile error.

Signed-off-by: Awiteb <a@4rs.nl>
@TheAwiteb
TheAwiteb requested a review from yukibtc as a code owner August 25, 2026 14:55
@codecov

codecov Bot commented Aug 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

1 participant