Skip to content

Use thiserror for errors#107

Merged
AlfioEmanueleFresta merged 2 commits into
masterfrom
thiserror-1
May 26, 2025
Merged

Use thiserror for errors#107
AlfioEmanueleFresta merged 2 commits into
masterfrom
thiserror-1

Conversation

@AlfioEmanueleFresta
Copy link
Copy Markdown
Member

  • Reduces some boilerplate
  • Used in Add NFC transport #105 - allow making dependency non-optional, rather than for nfc feature only
  • I plan to use this in new CBOR serialization and deserialization, as I would like to encapsulate underlying errors (more easily)

Copy link
Copy Markdown
Collaborator

@msirringhaus msirringhaus left a comment

Choose a reason for hiding this comment

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

Looks good so far, but I'd like to have Clone back, where possible.

Comment thread libwebauthn/src/transport/error.rs Outdated
Comment thread libwebauthn/src/transport/error.rs Outdated
Comment thread libwebauthn/src/transport/error.rs Outdated
@AlfioEmanueleFresta
Copy link
Copy Markdown
Member Author

Thanks @msirringhaus, good points. Addressed, good to merge?

Copy link
Copy Markdown
Collaborator

@msirringhaus msirringhaus left a comment

Choose a reason for hiding this comment

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

Yes, thank you!

@AlfioEmanueleFresta AlfioEmanueleFresta merged commit e11bd71 into master May 26, 2025
4 checks passed
@AlfioEmanueleFresta AlfioEmanueleFresta deleted the thiserror-1 branch May 26, 2025 14:01
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