Skip to content

Into<NonZeroU16> for wasi::Error #61

@Cyborus04

Description

@Cyborus04

In rust-random/getrandom#233 an optimization depending on wasi::Error::raw_error never returning 0 was added, which AFAIK is guaranteed but not as part of public API. This PR was accepted but would rather have direct conversion to NonZeroU16 to ensure this guarantee. Would that be possible? I looked into directly opening a PR for this but I'm not sure how that would be added

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