Skip to content

Byte-rearranging methods on u8 and i8 should be deprecated #44724

Closed
@clarfonthey

Description

@clarfonthey

Considering how there's no common trait for these, it makes sense that u8::swap_bytes, u8::from_le, u8::from_be, u8::to_be, and u8::from_be should all be deprecated. These methods have no effect and it is slightly confusing to have them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions