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

Use const generics for array impl #30

Open
Boscop opened this issue Apr 15, 2021 · 0 comments
Open

Use const generics for array impl #30

Boscop opened this issue Apr 15, 2021 · 0 comments

Comments

@Boscop
Copy link
Contributor

Boscop commented Apr 15, 2021

min_const_generics is in stable now, so we can use it for the array impl:

impl<T: $crate::SerdeDiff + serde::Serialize + for<'a> serde::Deserialize<'a>> $crate::SerdeDiff for [T; $len] {

Other crates have also switched to const generics for array impls (such as arrayvec).

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

No branches or pull requests

1 participant