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 --- usb_util/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usb_util/src') diff --git a/usb_util/src/lib.rs b/usb_util/src/lib.rs index 8755428..07af5ad 100644 --- a/usb_util/src/lib.rs +++ b/usb_util/src/lib.rs @@ -7,7 +7,7 @@ #![allow(non_camel_case_types)] #![allow(non_snake_case)] #![allow(non_upper_case_globals)] -#[cfg_attr(feature = "cargo-clippy", allow(clippy))] +#[allow(clippy::all)] mod bindings; #[macro_use] -- cgit 1.4.1