Skip to content
This repository has been archived by the owner on Nov 9, 2019. It is now read-only.

Commit

Permalink
Miscellaneous clippy fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode authored and kubkon committed Sep 9, 2019
1 parent 39161d0 commit 52b69c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hostcalls/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use log::trace;
use wasi_common_cbindgen::wasi_common_cbindgen;

#[wasi_common_cbindgen]
pub fn proc_exit(rval: wasm32::__wasi_exitcode_t) -> () {
pub fn proc_exit(rval: wasm32::__wasi_exitcode_t) {
trace!("proc_exit(rval={:?})", rval);
// TODO: Rather than call std::process::exit here, we should trigger a
// stack unwind similar to a trap.
Expand Down
2 changes: 1 addition & 1 deletion src/sys/unix/hostcalls_impl/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 52b69c2

Please sign in to comment.