-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: impl AsRef/PartialEq/Eq for BytesInner
This allows deriving `PartialEq` and `Eq` automatically for the two wrapper types, `Der` and `EchConfigListBytes`. The `BytesInner` type is crate-internal and so we don't have to be worried about users accidentally comparing `BytesInner` from a `EchConfigListBytes` with a `Der` `BytesInner` without the broader type context catching the err. Similarly by dragging the meat of the `AsRef` impls down onto `BytesInner` we can simplify the `PartialEq` impl and wrapper type `AsRef` impls.
- Loading branch information
Showing
1 changed file
with
53 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters