Conversation
Audit all error types and ensure the following holds: - All use `non_exhaustive` - All derive `Debug, Clone, PartialEq, Eq` (unless `io::Error` is present, in which case only `Debug`) - All error `From` impls use `inline`
|
BTW. You could use semgrep to enforce it. Example from Fedimint. We've found it quite useful and capable tool. |
|
Thanks for the link, can |
As long as you match around something that should always be there, then you can make an exception for the more specific thing that is correct. Here we match all logs statements, but then let them pass if they have the |
|
Thanks for clarifying, we could definitely use this. |
Audit all error types and ensure the following holds:
non_exhaustiveDebug, Clone, PartialEq, Eq(unlessio::Erroris present, in which case onlyDebug)Fromimpls useinlineThis is similar to rust-bitcoin/rust-bitcoin#2101, probably should have done this one first.