diff options
author | David Tolnay <dtolnay@chromium.org> | 2019-04-12 15:40:20 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-04-15 02:06:09 -0700 |
commit | 967c2f2c9bce9e177f0eea3f1bb73d35d9c95922 (patch) | |
tree | 1b26a9925c15116ca16b3c2146df0edda45f9c62 /kvm_sys | |
parent | 79a2a2d7b44f1e49a83fdf527dd554f3bef704bc (diff) | |
download | crosvm-967c2f2c9bce9e177f0eea3f1bb73d35d9c95922.tar crosvm-967c2f2c9bce9e177f0eea3f1bb73d35d9c95922.tar.gz crosvm-967c2f2c9bce9e177f0eea3f1bb73d35d9c95922.tar.bz2 crosvm-967c2f2c9bce9e177f0eea3f1bb73d35d9c95922.tar.lz crosvm-967c2f2c9bce9e177f0eea3f1bb73d35d9c95922.tar.xz crosvm-967c2f2c9bce9e177f0eea3f1bb73d35d9c95922.tar.zst crosvm-967c2f2c9bce9e177f0eea3f1bb73d35d9c95922.zip |
clippy: Switch to tool attributes for suppressing lints
Tool attributes were stabilized in Rust 1.31: https://blog.rust-lang.org/2018/12/06/Rust-1.31-and-rust-2018.html#tool-lints Before: #[cfg_attr(feature = "cargo-clippy", allow(cast_ptr_alignment)] After: #[allow(clippy::cast_ptr_alignment)] TEST=cargo check --all-features Change-Id: If2f1511f6231d60578b5e0d5bd4210a68eb08caf Reviewed-on: https://chromium-review.googlesource.com/1566651 Commit-Ready: David Tolnay <dtolnay@chromium.org> Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: David Tolnay <dtolnay@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: David Tolnay <dtolnay@chromium.org>
Diffstat (limited to 'kvm_sys')
-rw-r--r-- | kvm_sys/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm_sys/src/lib.rs b/kvm_sys/src/lib.rs index 9000b79..b9748a3 100644 --- a/kvm_sys/src/lib.rs +++ b/kvm_sys/src/lib.rs @@ -16,7 +16,7 @@ pub const KVM_EXIT_IO_OUT: ::std::os::raw::c_uint = 1; #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] pub mod x86 { // generated with bindgen /usr/include/linux/kvm.h --no-unstable-rust --constified-enum '*' --with-derive-default - #[cfg_attr(feature = "cargo-clippy", allow(clippy))] + #[allow(clippy::all)] pub mod bindings; pub use crate::bindings::*; use sys_util::{ioctl_ior_nr, ioctl_iow_nr, ioctl_iowr_nr}; |