From 52b69c21cfe3da7be8e86d74ba7e2fd626afd5e2 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 14 Aug 2019 14:46:15 -0700 Subject: [PATCH] Miscellaneous clippy fixes. --- src/hostcalls/misc.rs | 2 +- src/sys/unix/hostcalls_impl/misc.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hostcalls/misc.rs b/src/hostcalls/misc.rs index fc41fff08f..2fb6b5baca 100644 --- a/src/hostcalls/misc.rs +++ b/src/hostcalls/misc.rs @@ -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. diff --git a/src/sys/unix/hostcalls_impl/misc.rs b/src/sys/unix/hostcalls_impl/misc.rs index ced3362410..e13c062aed 100644 --- a/src/sys/unix/hostcalls_impl/misc.rs +++ b/src/sys/unix/hostcalls_impl/misc.rs @@ -63,7 +63,7 @@ pub(crate) fn clock_time_get(clock_id: host::__wasi_clockid_t) -> Result