Miscellaneous clippy fixes.

This commit is contained in:
Dan Gohman
2019-08-14 14:46:15 -07:00
committed by Jakub Konka
parent 39161d020f
commit 52b69c21cf
2 changed files with 2 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ pub(crate) fn clock_time_get(clock_id: host::__wasi_clockid_t) -> Result<host::_
(timespec.tv_sec as host::__wasi_timestamp_t)
.checked_mul(1_000_000_000)
.and_then(|sec_ns| sec_ns.checked_add(timespec.tv_nsec as host::__wasi_timestamp_t))
.map_or(Err(Error::EOVERFLOW), |time| Ok(time))
.map_or(Err(Error::EOVERFLOW), Ok)
}
pub(crate) fn poll_oneoff(