Skip to content

Array::from_slice deprecated #114

@ghost

Description

Array::from_slice is deprecated it's suggested to use Array::try_from but try::from &[u8] is not satisfied.

I encountered frustration using ml-kem crate trying to serialize and deserialize encapsulation key and the cipher_text

I was unable to find any standard way to achieve that so I just turned off the warning by adding #[allow(deprecated)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions