crosvm/sys_util/src
Daniel Verkamp fb32e98f86 sys_util: drop redundant empty return type
rustfmt incorrectly formats the `handler` parameter in
register_signal_handler in a way that actually breaks compilation.

This bug has been reported upstream already, but it is not fixed yet on
the version of rustfmt available with stable rust:
https://github.com/rust-lang/rustfmt/issues/3673

However, the empty return type can just be omitted in this case, which
avoids the rustfmt bug.

BUG=None
TEST=`bin/fmt --check` passes with Rust 1.36.0

Change-Id: I75c49c66f1db9cb6ae73cc0f6f3e66351176c474
Signed-off-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1724849
Reviewed-by: Zach Reizner <zachr@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
2019-07-30 05:35:30 +00:00
..
affinity.rs clippy: Iterate without calling .iter() 2019-04-18 19:51:01 -07:00
alloc.rs crosvm: add license blurb to all files 2019-04-24 15:51:38 -07:00
capabilities.rs edition: Remove extern crate lines 2019-04-15 02:06:08 -07:00
clock.rs edition: Eliminate ref keyword 2019-04-18 19:51:01 -07:00
errno.rs sys_util: errno: Make clippy clean 2019-03-21 08:07:32 -07:00
eventfd.rs edition: Update absolute paths to 2018 style 2019-03-13 21:05:03 -07:00
file_flags.rs edition: Use dyn syntax for trait objects 2019-04-08 02:51:37 -07:00
file_traits.rs eliminate mut from non-mut references 2019-06-04 20:29:25 +00:00
fork.rs edition: Update absolute paths to 2018 style 2019-03-13 21:05:03 -07:00
guest_address.rs
guest_memory.rs tree-wide: Use new trait object syntax 2019-07-24 02:22:23 +00:00
handle_eintr.rs edition: Eliminate blocks superseded by NLL 2019-04-17 17:22:57 -07:00
ioctl.rs sys_util: Enable macros imported individually 2019-04-15 02:06:04 -07:00
lib.rs tempfile: Unify the two tempdir implementations 2019-07-11 16:15:38 -07:00
mmap.rs tree-wide: Use new trait object syntax 2019-07-24 02:22:23 +00:00
net.rs crosvm: fix clippy warnings 2019-06-08 04:27:37 +00:00
passwd.rs edition: Update absolute paths to 2018 style 2019-03-13 21:05:03 -07:00
poll.rs sys_util: poll: add build_with and add_many helper functions 2019-07-24 06:07:19 +00:00
priority.rs edition: Update absolute paths to 2018 style 2019-03-13 21:05:03 -07:00
raw_fd.rs
seek_hole.rs tempfile: Unify the two tempdir implementations 2019-07-11 16:15:38 -07:00
shm.rs eliminate mut from non-mut references 2019-06-04 20:29:25 +00:00
signal.rs sys_util: drop redundant empty return type 2019-07-30 05:35:30 +00:00
signalfd.rs edition: Eliminate blocks superseded by NLL 2019-04-17 17:22:57 -07:00
sock_ctrl_msg.rs sys_util: sock_ctrl_msg: Make clippy clean 2019-04-03 18:14:03 -07:00
struct_util.rs
syslog.rs sys_util: fix new warning initializing Once 2019-07-24 02:22:23 +00:00
terminal.rs edition: Update absolute paths to 2018 style 2019-03-13 21:05:03 -07:00
timerfd.rs edition: Eliminate ref keyword 2019-04-18 19:51:01 -07:00
write_zeroes.rs tempfile: Unify the two tempdir implementations 2019-07-11 16:15:38 -07:00