Skip to content

Commit

Permalink
Remove clippy deny attributes from test suite
Browse files Browse the repository at this point in the history
These were superseded by the clippy invocation made in our CI workflow:

    run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic
  • Loading branch information
dtolnay committed Apr 24, 2022
1 parent 625d349 commit dd9206c
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 16 deletions.
2 changes: 0 additions & 2 deletions tests/compiletest.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(clippy::all, clippy::pedantic)]

#[rustversion::attr(not(nightly), ignore)]
#[cfg_attr(miri, ignore)]
#[test]
Expand Down
2 changes: 0 additions & 2 deletions tests/test_display.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(clippy::all, clippy::pedantic)]

use std::fmt::Display;
use thiserror::Error;

Expand Down
1 change: 0 additions & 1 deletion tests/test_error.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![deny(clippy::all, clippy::pedantic)]
#![allow(dead_code)]

use std::fmt::{self, Display};
Expand Down
1 change: 0 additions & 1 deletion tests/test_expr.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![deny(clippy::all, clippy::pedantic)]
#![allow(clippy::iter_cloned_collect, clippy::option_if_let_else)]

use std::fmt::Display;
Expand Down
2 changes: 0 additions & 2 deletions tests/test_from.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(clippy::all, clippy::pedantic)]

use std::io;
use thiserror::Error;

Expand Down
1 change: 0 additions & 1 deletion tests/test_generics.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![deny(clippy::all, clippy::pedantic)]
#![allow(clippy::needless_late_init)]

use std::fmt::{self, Debug, Display};
Expand Down
1 change: 0 additions & 1 deletion tests/test_option.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![cfg_attr(thiserror_nightly_testing, feature(backtrace))]
#![deny(clippy::all, clippy::pedantic)]

#[cfg(thiserror_nightly_testing)]
pub mod structs {
Expand Down
2 changes: 0 additions & 2 deletions tests/test_path.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(clippy::all, clippy::pedantic)]

use ref_cast::RefCast;
use std::fmt::Display;
use std::path::{Path, PathBuf};
Expand Down
2 changes: 0 additions & 2 deletions tests/test_source.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(clippy::all, clippy::pedantic)]

use std::error::Error as StdError;
use std::io;
use thiserror::Error;
Expand Down
2 changes: 0 additions & 2 deletions tests/test_transparent.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(clippy::all, clippy::pedantic)]

use anyhow::anyhow;
use std::error::Error as _;
use std::io;
Expand Down

0 comments on commit dd9206c

Please sign in to comment.