From dd9206cfd05836fc5215ee65c47bd5405fc122bf Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 24 Apr 2022 15:22:57 -0700 Subject: [PATCH] Remove clippy deny attributes from test suite These were superseded by the clippy invocation made in our CI workflow: run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic --- tests/compiletest.rs | 2 -- tests/test_display.rs | 2 -- tests/test_error.rs | 1 - tests/test_expr.rs | 1 - tests/test_from.rs | 2 -- tests/test_generics.rs | 1 - tests/test_option.rs | 1 - tests/test_path.rs | 2 -- tests/test_source.rs | 2 -- tests/test_transparent.rs | 2 -- 10 files changed, 16 deletions(-) diff --git a/tests/compiletest.rs b/tests/compiletest.rs index e5eed81..7974a62 100644 --- a/tests/compiletest.rs +++ b/tests/compiletest.rs @@ -1,5 +1,3 @@ -#![deny(clippy::all, clippy::pedantic)] - #[rustversion::attr(not(nightly), ignore)] #[cfg_attr(miri, ignore)] #[test] diff --git a/tests/test_display.rs b/tests/test_display.rs index 949d9ed..8917bb0 100644 --- a/tests/test_display.rs +++ b/tests/test_display.rs @@ -1,5 +1,3 @@ -#![deny(clippy::all, clippy::pedantic)] - use std::fmt::Display; use thiserror::Error; diff --git a/tests/test_error.rs b/tests/test_error.rs index ece7f91..fab934d 100644 --- a/tests/test_error.rs +++ b/tests/test_error.rs @@ -1,4 +1,3 @@ -#![deny(clippy::all, clippy::pedantic)] #![allow(dead_code)] use std::fmt::{self, Display}; diff --git a/tests/test_expr.rs b/tests/test_expr.rs index 46879f4..34de560 100644 --- a/tests/test_expr.rs +++ b/tests/test_expr.rs @@ -1,4 +1,3 @@ -#![deny(clippy::all, clippy::pedantic)] #![allow(clippy::iter_cloned_collect, clippy::option_if_let_else)] use std::fmt::Display; diff --git a/tests/test_from.rs b/tests/test_from.rs index a25ce35..1f38705 100644 --- a/tests/test_from.rs +++ b/tests/test_from.rs @@ -1,5 +1,3 @@ -#![deny(clippy::all, clippy::pedantic)] - use std::io; use thiserror::Error; diff --git a/tests/test_generics.rs b/tests/test_generics.rs index 63b3c2f..4ab9f37 100644 --- a/tests/test_generics.rs +++ b/tests/test_generics.rs @@ -1,4 +1,3 @@ -#![deny(clippy::all, clippy::pedantic)] #![allow(clippy::needless_late_init)] use std::fmt::{self, Debug, Display}; diff --git a/tests/test_option.rs b/tests/test_option.rs index ca21713..4b41cc1 100644 --- a/tests/test_option.rs +++ b/tests/test_option.rs @@ -1,5 +1,4 @@ #![cfg_attr(thiserror_nightly_testing, feature(backtrace))] -#![deny(clippy::all, clippy::pedantic)] #[cfg(thiserror_nightly_testing)] pub mod structs { diff --git a/tests/test_path.rs b/tests/test_path.rs index a10b1f3..a34a3d7 100644 --- a/tests/test_path.rs +++ b/tests/test_path.rs @@ -1,5 +1,3 @@ -#![deny(clippy::all, clippy::pedantic)] - use ref_cast::RefCast; use std::fmt::Display; use std::path::{Path, PathBuf}; diff --git a/tests/test_source.rs b/tests/test_source.rs index ab16097..637f4ac 100644 --- a/tests/test_source.rs +++ b/tests/test_source.rs @@ -1,5 +1,3 @@ -#![deny(clippy::all, clippy::pedantic)] - use std::error::Error as StdError; use std::io; use thiserror::Error; diff --git a/tests/test_transparent.rs b/tests/test_transparent.rs index 84d7c91..6f3c03e 100644 --- a/tests/test_transparent.rs +++ b/tests/test_transparent.rs @@ -1,5 +1,3 @@ -#![deny(clippy::all, clippy::pedantic)] - use anyhow::anyhow; use std::error::Error as _; use std::io;