interactor #47
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (2)
ping-pong/interactor/tests/interact_cs_tests.rs|28 col 5| warning: used assert_eq!
with a literal bool
--> ping-pong/interactor/tests/interact_cs_tests.rs:28:5
|
28 | assert_eq!(true, interactor.did_user_ping(alice.clone()).await);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
= note: #[warn(clippy::bool_assert_comparison)]
on by default
help: replace it with assert!(..)
|
28 - assert_eq!(true, interactor.did_user_ping(alice.clone()).await);
28 + assert!(interactor.did_user_ping(alice.clone()).await);
|
ping-pong/interactor/tests/interact_cs_tests.rs|30 col 5| warning: used assert_eq!
with a literal bool
--> ping-pong/interactor/tests/interact_cs_tests.rs:30:5
|
30 | assert_eq!(false, interactor.did_user_ping(mike.clone()).await);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with assert!(..)
|
30 - assert_eq!(false, interactor.did_user_ping(mike.clone()).await);
30 + assert!(!(interactor.did_user_ping(mike.clone()).await));
|
Filtered Findings (0)
Annotations
Check warning on line 28 in ping-pong/interactor/tests/interact_cs_tests.rs
github-actions / clippy
[clippy] ping-pong/interactor/tests/interact_cs_tests.rs#L28
warning: used `assert_eq!` with a literal bool
--> ping-pong/interactor/tests/interact_cs_tests.rs:28:5
|
28 | assert_eq!(true, interactor.did_user_ping(alice.clone()).await);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
= note: `#[warn(clippy::bool_assert_comparison)]` on by default
help: replace it with `assert!(..)`
|
28 - assert_eq!(true, interactor.did_user_ping(alice.clone()).await);
28 + assert!(interactor.did_user_ping(alice.clone()).await);
|
Raw output
ping-pong/interactor/tests/interact_cs_tests.rs:28:5:w:warning: used `assert_eq!` with a literal bool
--> ping-pong/interactor/tests/interact_cs_tests.rs:28:5
|
28 | assert_eq!(true, interactor.did_user_ping(alice.clone()).await);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
= note: `#[warn(clippy::bool_assert_comparison)]` on by default
help: replace it with `assert!(..)`
|
28 - assert_eq!(true, interactor.did_user_ping(alice.clone()).await);
28 + assert!(interactor.did_user_ping(alice.clone()).await);
|
__END__
Check warning on line 30 in ping-pong/interactor/tests/interact_cs_tests.rs
github-actions / clippy
[clippy] ping-pong/interactor/tests/interact_cs_tests.rs#L30
warning: used `assert_eq!` with a literal bool
--> ping-pong/interactor/tests/interact_cs_tests.rs:30:5
|
30 | assert_eq!(false, interactor.did_user_ping(mike.clone()).await);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
30 - assert_eq!(false, interactor.did_user_ping(mike.clone()).await);
30 + assert!(!(interactor.did_user_ping(mike.clone()).await));
|
Raw output
ping-pong/interactor/tests/interact_cs_tests.rs:30:5:w:warning: used `assert_eq!` with a literal bool
--> ping-pong/interactor/tests/interact_cs_tests.rs:30:5
|
30 | assert_eq!(false, interactor.did_user_ping(mike.clone()).await);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
30 - assert_eq!(false, interactor.did_user_ping(mike.clone()).await);
30 + assert!(!(interactor.did_user_ping(mike.clone()).await));
|
__END__