Skip to content

Use const generics for array impl #30

Open
@Boscop

Description

@Boscop

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions