crosvm/sys_util/src
David Tolnay 5bbbf61082 lint: Resolve the easier clippy lints
Hopefully the changes are self-explanatory and uncontroversial. This
eliminates much of the noise from `cargo clippy` and, for my purposes,
gives me a reasonable way to use it as a tool when writing and reviewing
code.

Here is the Clippy invocation I was using:

    cargo +nightly clippy -- -W clippy::correctness -A renamed_and_removed_lints -Aclippy::{blacklisted_name,borrowed_box,cast_lossless,cast_ptr_alignment,enum_variant_names,identity_op,if_same_then_else,mut_from_ref,needless_pass_by_value,new_without_default,new_without_default_derive,or_fun_call,ptr_arg,should_implement_trait,single_match,too_many_arguments,trivially_copy_pass_by_ref,unreadable_literal,unsafe_vector_initialization,useless_transmute}

TEST=cargo check --features wl-dmabuf,gpu,usb-emulation
TEST=boot linux

Change-Id: I55eb1b4a72beb2f762480e3333a921909314a0a2
Reviewed-on: https://chromium-review.googlesource.com/1356911
Commit-Ready: David Tolnay <dtolnay@chromium.org>
Tested-by: David Tolnay <dtolnay@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
2018-12-03 20:32:03 -08:00
..
errno.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
eventfd.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
file_flags.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
file_sync.rs sys_util: add trait to fsync File and QcowFile 2018-10-26 17:19:10 -07:00
fork.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
guest_address.rs crosvm: change GuestAddress to always be a u64 2018-02-01 18:08:55 -08:00
guest_memory.rs lint: Resolve the easier clippy lints 2018-12-03 20:32:03 -08:00
handle_eintr.rs lint: Resolve the easier clippy lints 2018-12-03 20:32:03 -08:00
ioctl.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
lib.rs sys_util: replace fallocate64 with libc call 2018-11-30 12:53:08 -08:00
mmap.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
passwd.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
poll.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
seek_hole.rs sys_util: add SeekHole trait 2018-10-18 19:01:06 -07:00
shm.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
signal.rs lint: Resolve the easier clippy lints 2018-12-03 20:32:03 -08:00
signalfd.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
sock_ctrl_msg.rs lint: Resolve the easier clippy lints 2018-12-03 20:32:03 -08:00
struct_util.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
syslog.rs lint: Resolve the easier clippy lints 2018-12-03 20:32:03 -08:00
tempdir.rs lint: Resolve the easier clippy lints 2018-12-03 20:32:03 -08:00
terminal.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
timerfd.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
write_zeroes.rs devices: virtio: block: ignore Discard failures 2018-10-19 12:19:41 -07:00