Skip to content

Commit b72ebfe

Browse files
committed
Ignore assertions_on_constants clippy lint
warning: this assertion has a constant value --> tests/features.rs:6:5 | 6 | / assert!( 7 | | !cfg!(feature = "proc-macro"), 8 | | "still compiled with proc_macro?" 9 | | ); | |_____^ | = help: consider moving this to an anonymous constant: `const _: () = { assert!(..); }` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants = note: `-W clippy::assertions-on-constants` implied by `-W clippy::all` = help: to override `-W clippy::all` add `#[allow(clippy::assertions_on_constants)]`
1 parent 72aaf49 commit b72ebfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/features.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![allow(clippy::ignore_without_reason)]
1+
#![allow(clippy::assertions_on_constants, clippy::ignore_without_reason)]
22

33
#[test]
44
#[ignore]

0 commit comments

Comments
 (0)