-
Notifications
You must be signed in to change notification settings - Fork 411
Implement std::error::Error for SocketParseError #3816
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
Implement std::error::Error for SocketParseError #3816
Conversation
👋 I see @TheBlueMatt was un-assigned. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3816 +/- ##
==========================================
+ Coverage 89.77% 89.88% +0.10%
==========================================
Files 159 160 +1
Lines 128910 129307 +397
Branches 128910 129307 +397
==========================================
+ Hits 115729 116224 +495
+ Misses 10484 10384 -100
- Partials 2697 2699 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🔔 1st Reminder Hey @TheBlueMatt! This PR has been waiting for your review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, why not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, please go ahead and squash the fixup so that all CI checks pass.
SocketParseError does not implement std Error which means it can't be used in standard ways like combining ? and anyhow. This commit implements std::error::Error for SocketParseError Hide the std::error::Error for SocketAddressParseError implementation behind the "std" feature since it relies on the standard library.
e226094
to
0984ea4
Compare
Done |
SocketParseError does not implement std Error which means it can't be used in standard ways like combining ? and anyhow. This is problematic since it's a public interface and being able to use anyhow on public errors is nice.
This commit implements std::error::Error for SocketParseError