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

Add IntoByteSlice trait, use as bound for into_ref #966

Merged
merged 1 commit into from
Feb 29, 2024
Merged

Commits on Feb 29, 2024

  1. Add IntoByteSlice trait, use as bound for into_ref

    Add `IntoByteSlice` and `IntoByteSliceMut` traits, which extend
    `ByteSlice` and `ByteSliceMut`, adding `Into<&[u8]>` and `Into<&mut
    [u8]>` bounds respectively. Use these new traits as the bounds in the
    `Ref` methods `into_ref`, `into_mut`, `into_slice`, and
    `into_mut_slice`. This allows us to remove the post-monomorphization
    error which was originally added to patch the soundness hole in #716 in
    a backwards-compatible way.
    
    Closes #758
    joshlf committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    8b126aa View commit details
    Browse the repository at this point in the history