From 00f3fc90d1ca8cc2ba1784ef352aa594062bbdeb Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 13 Apr 2021 10:02:21 -0700 Subject: [PATCH] Update 2018 idioms comment. --- src/cargo/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cargo/lib.rs b/src/cargo/lib.rs index 7aac49e6867..680f94f0e7e 100644 --- a/src/cargo/lib.rs +++ b/src/cargo/lib.rs @@ -1,6 +1,7 @@ -#![cfg_attr(test, deny(warnings))] -// While we're getting used to 2018: +// For various reasons, some idioms are still allow'ed, but we would like to +// test and enforce them. #![warn(rust_2018_idioms)] +#![cfg_attr(test, deny(warnings))] // Due to some of the default clippy lints being somewhat subjective and not // necessarily an improvement, we prefer to not use them at this time. #![allow(clippy::all)]