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
In rust-random/getrandom#233 an optimization depending on
wasi::Error::raw_errornever 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 toNonZeroU16to 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