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 conversion from BytesMut to Vec<u8> #543

Merged
merged 6 commits into from Jul 10, 2022

Commits on Jul 10, 2022

  1. Impl TryInto<Vec<u8>> for BytesMut

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Jul 10, 2022
    Configuration menu
    Copy the full SHA
    ae48800 View commit details
    Browse the repository at this point in the history
  2. Replace TryInto<Vec<u8>> with Into<Vec<u8>>

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Jul 10, 2022
    Configuration menu
    Copy the full SHA
    c5b8f39 View commit details
    Browse the repository at this point in the history
  3. Fix Into<Vec<u8>> impl for BytesMut

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Jul 10, 2022
    Configuration menu
    Copy the full SHA
    aad93ea View commit details
    Browse the repository at this point in the history
  4. Increase coverage of bytes_into_vec

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Jul 10, 2022
    Configuration menu
    Copy the full SHA
    0f4ab70 View commit details
    Browse the repository at this point in the history
  5. Fix Into<Vec<u8>> impl for BytesMut

    Ensure that if new kind/vtable is added to `BytesMut` in the future,
    `Into<Vec<u8>>` would still work.
    
    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Jul 10, 2022
    Configuration menu
    Copy the full SHA
    5dfc926 View commit details
    Browse the repository at this point in the history
  6. Replace Into<Vec<u8>> with From<BytesMut>

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Jul 10, 2022
    Configuration menu
    Copy the full SHA
    d3c8b8d View commit details
    Browse the repository at this point in the history