Clippy: use from functions rather than as casts.
`as` is a many-faceted conversion operator, while `from` functions only do lossless conversions.
This commit is contained in:
@@ -197,7 +197,7 @@ pub(crate) fn poll_oneoff(
|
||||
nevents,
|
||||
);
|
||||
|
||||
if nsubscriptions as u64 > wasm32::__wasi_filesize_t::max_value() {
|
||||
if u64::from(nsubscriptions) > wasm32::__wasi_filesize_t::max_value() {
|
||||
return Err(Error::EINVAL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user