crosvm/sys_util/src
Jakub Staron b6515a9167 crosvm: fix clippy warnings
Resolve a couple of minor clippy warnings:
 - unneeded return statement
 - use `if let` instead of `match` for single pattern destruction
 - use `values()` function to iterate over map values
 - supress warning about `ptr::null()` as expressed by the comment

BUG=None
TEST=./bin/clippy
TEST=cargo build

Change-Id: Ic4cea94cd3a25a9edf6ef38119de8c46dcfec563
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1646739
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Zach Reizner <zachr@chromium.org>
Reviewed-by: Stephen Barber <smbarber@chromium.org>
Commit-Queue: Jakub Staroń <jstaron@google.com>
2019-06-08 04:27:37 +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
eventfd.rs
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
guest_address.rs
guest_memory.rs eliminate mut from non-mut references 2019-06-04 20:29:25 +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 eliminate mut from non-mut references 2019-06-04 20:29:25 +00:00
mmap.rs crosvm: virtio-pmem device 2019-06-05 07:28:54 +00:00
net.rs crosvm: fix clippy warnings 2019-06-08 04:27:37 +00:00
passwd.rs
poll.rs clippy: Iterate without calling .iter() 2019-04-18 19:51:01 -07:00
priority.rs
raw_fd.rs
seek_hole.rs
shm.rs eliminate mut from non-mut references 2019-06-04 20:29:25 +00:00
signal.rs
signalfd.rs edition: Eliminate blocks superseded by NLL 2019-04-17 17:22:57 -07:00
sock_ctrl_msg.rs
struct_util.rs
syslog.rs crosvm: add cmdline flags for configuring serial outputs in guest machine 2019-05-15 13:36:25 -07:00
tempdir.rs edition: Eliminate ref keyword 2019-04-18 19:51:01 -07:00
terminal.rs
timerfd.rs edition: Eliminate ref keyword 2019-04-18 19:51:01 -07:00
write_zeroes.rs clippy: Iterate without calling .iter() 2019-04-18 19:51:01 -07:00