Skip to content

Commit e0cc7a1

Browse files
author
A.A.Abroskin
committed
allow assertions_on_constants for collapsible_if.fixed and missing-test-files.rs
1 parent 2068463 commit e0cc7a1

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

tests/missing-test-files.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::assertions_on_constants)]
2+
13
use std::fs::{self, DirEntry};
24
use std::path::Path;
35

tests/ui/attrs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![warn(clippy::inline_always, clippy::deprecated_semver)]
2-
#![allow(clippy::assertions_on_constants::assertions_on_constants)]
2+
#![allow(clippy::assertions_on_constants)]
33
#[inline(always)]
44
fn test_attr_lint() {
55
assert!(true)

tests/ui/collapsible_if.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-rustfix
2-
#![allow(clippy::cyclomatic_complexity)]
2+
#![allow(clippy::cyclomatic_complexity, clippy::assertions_on_constants)]
33

44
#[rustfmt::skip]
55
#[warn(clippy::collapsible_if)]

tests/ui/empty_line_after_outer_attribute.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![warn(clippy::empty_line_after_outer_attr)]
2-
#![allow(clippy::assertions_on_constants::assertions_on_constants)]
2+
#![allow(clippy::assertions_on_constants)]
33
// This should produce a warning
44
#[crate_type = "lib"]
55

tests/ui/panic_unimplemented.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![warn(clippy::panic_params, clippy::unimplemented)]
2-
#![allow(clippy::assertions_on_constants::assertions_on_constants)]
2+
#![allow(clippy::assertions_on_constants)]
33
fn missing() {
44
if true {
55
panic!("{}");

0 commit comments

Comments
 (0)