From 967c2f2c9bce9e177f0eea3f1bb73d35d9c95922 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 12 Apr 2019 15:40:20 -0700 Subject: 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 Commit-Ready: ChromeOS CL Exonerator Bot Tested-by: David Tolnay Tested-by: kokoro Reviewed-by: David Tolnay --- net_sys/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net_sys/src/lib.rs') diff --git a/net_sys/src/lib.rs b/net_sys/src/lib.rs index 9df49e4..32013fc 100644 --- a/net_sys/src/lib.rs +++ b/net_sys/src/lib.rs @@ -15,7 +15,7 @@ use sys_util::{ioctl_ior_nr, ioctl_iow_nr}; // Generated against Linux 4.11 to include fix "uapi: fix linux/if.h userspace // compilation errors". // Manual fixup of ifrn_name to be of type c_uchar instead of c_char. -#[cfg_attr(feature = "cargo-clippy", allow(clippy))] +#[allow(clippy::all)] pub mod iff; // generated with bindgen /usr/include/linux/if_tun.h --no-unstable-rust // --constified-enum '*' --with-derive-default -- cgit 1.4.1