Skip to content

Commit 8497007

Browse files
committed
Ignore clippy::bool_assert_comparison lint in tests
``` warning: used `assert_eq!` with a literal bool --> tests/bounded.rs:37:5 | 37 | assert_eq!(q.is_empty(), true); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` | = note: `#[warn(clippy::bool_assert_comparison)]` on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison warning: used `assert_eq!` with a literal bool --> tests/bounded.rs:38:5 | 38 | assert_eq!(q.is_full(), false); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison warning: used `assert_eq!` with a literal bool --> tests/bounded.rs:43:5 | 43 | assert_eq!(q.is_empty(), false); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison warning: used `assert_eq!` with a literal bool --> tests/bounded.rs:44:5 | 44 | assert_eq!(q.is_full(), false); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison warning: used `assert_eq!` with a literal bool --> tests/bounded.rs:49:5 | 49 | assert_eq!(q.is_empty(), false); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison warning: used `assert_eq!` with a literal bool --> tests/bounded.rs:50:5 | 50 | assert_eq!(q.is_full(), true); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison warning: used `assert_eq!` with a literal bool --> tests/bounded.rs:55:5 | 55 | assert_eq!(q.is_empty(), false); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison warning: used `assert_eq!` with a literal bool --> tests/bounded.rs:56:5 | 56 | assert_eq!(q.is_full(), false); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison warning: used `assert_eq!` with a literal bool --> tests/unbounded.rs:22:5 | 22 | assert_eq!(q.is_empty(), true); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` | = note: `#[warn(clippy::bool_assert_comparison)]` on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison warning: used `assert_eq!` with a literal bool --> tests/unbounded.rs:27:5 | 27 | assert_eq!(q.is_empty(), false); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison warning: used `assert_eq!` with a literal bool --> tests/unbounded.rs:32:5 | 32 | assert_eq!(q.is_empty(), true); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison warning: used `assert_eq!` with a literal bool --> tests/single.rs:29:5 | 29 | assert_eq!(q.is_empty(), true); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` | = note: `#[warn(clippy::bool_assert_comparison)]` on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison warning: used `assert_eq!` with a literal bool --> tests/single.rs:30:5 | 30 | assert_eq!(q.is_full(), false); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison warning: used `assert_eq!` with a literal bool --> tests/single.rs:35:5 | 35 | assert_eq!(q.is_empty(), false); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison warning: used `assert_eq!` with a literal bool --> tests/single.rs:36:5 | 36 | assert_eq!(q.is_full(), true); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison warning: used `assert_eq!` with a literal bool --> tests/single.rs:41:5 | 41 | assert_eq!(q.is_empty(), true); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison warning: used `assert_eq!` with a literal bool --> tests/single.rs:42:5 | 42 | assert_eq!(q.is_full(), false); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison ```
1 parent 6b7a6a0 commit 8497007

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

tests/bounded.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::bool_assert_comparison)]
2+
13
use std::sync::atomic::{AtomicUsize, Ordering};
24

35
use concurrent_queue::{ConcurrentQueue, PopError, PushError};

tests/single.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::bool_assert_comparison)]
2+
13
use std::sync::atomic::{AtomicUsize, Ordering};
24

35
use concurrent_queue::{ConcurrentQueue, PopError, PushError};

tests/unbounded.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::bool_assert_comparison)]
2+
13
use std::sync::atomic::{AtomicUsize, Ordering};
24

35
use concurrent_queue::{ConcurrentQueue, PopError, PushError};

0 commit comments

Comments
 (0)