Skip to content
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 basic traits for Compat and BorrowCompat #734

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

skibon02
Copy link
Contributor

@skibon02 skibon02 commented Dec 3, 2024

Wrapper types Compat and BorrowCompat do not introduce any kind of complexity or usage context to the inner type, and their only purpose is to provide an implementation for bincode traits.

So, it would be nice to make them as flexible as possible by deriving all common traits:

#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]

@VictorKoenders VictorKoenders merged commit 29d8d84 into bincode-org:trunk Dec 6, 2024
67 of 69 checks passed
@VictorKoenders
Copy link
Contributor

Makes a lot of sense, thanks!

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.

None yet

2 participants