Test: WebSocket close behavior. #2712
Annotations
9 errors
fmt
Error: ENOENT: no such file or directory, opendir '/home/runner/work/actix-web/actix-web/target'
|
clippy:
actix-web-actors/tests/test_ws_close.rs#L24
[clippy] reported by reviewdog 🐶
error: this let-binding has unit value
--> actix-web-actors/tests/test_ws_close.rs:24:9
|
24 | _ = self.finished.try_send(()).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `self.finished.try_send(()).unwrap();`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
= note: `-D clippy::let-unit-value` implied by `-D warnings`
Raw Output:
actix-web-actors/tests/test_ws_close.rs:24:9:e:error: this let-binding has unit value
--> actix-web-actors/tests/test_ws_close.rs:24:9
|
24 | _ = self.finished.try_send(()).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `self.finished.try_send(()).unwrap();`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
= note: `-D clippy::let-unit-value` implied by `-D warnings`
__END__
|
clippy:
actix-web-actors/tests/test_ws_close.rs#L51
[clippy] reported by reviewdog 🐶
error: used `assert_eq!` with a literal bool
--> actix-web-actors/tests/test_ws_close.rs:51:5
|
51 | assert_eq!(true, nothing.is_ok());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
= note: `-D clippy::bool-assert-comparison` implied by `-D warnings`
help: replace it with `assert!(..)`
|
51 - assert_eq!(true, nothing.is_ok());
51 + assert!(nothing.is_ok());
|
Raw Output:
actix-web-actors/tests/test_ws_close.rs:51:5:e:error: used `assert_eq!` with a literal bool
--> actix-web-actors/tests/test_ws_close.rs:51:5
|
51 | assert_eq!(true, nothing.is_ok());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
= note: `-D clippy::bool-assert-comparison` implied by `-D warnings`
help: replace it with `assert!(..)`
|
51 - assert_eq!(true, nothing.is_ok());
51 + assert!(nothing.is_ok());
|
__END__
|
clippy:
actix-web-actors/tests/test_ws_close.rs#L52
[clippy] reported by reviewdog 🐶
error: used `assert_eq!` with a literal bool
--> actix-web-actors/tests/test_ws_close.rs:52:5
|
52 | assert_eq!(true, nothing.unwrap().is_none());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
52 - assert_eq!(true, nothing.unwrap().is_none());
52 + assert!(nothing.unwrap().is_none());
|
Raw Output:
actix-web-actors/tests/test_ws_close.rs:52:5:e:error: used `assert_eq!` with a literal bool
--> actix-web-actors/tests/test_ws_close.rs:52:5
|
52 | assert_eq!(true, nothing.unwrap().is_none());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
52 - assert_eq!(true, nothing.unwrap().is_none());
52 + assert!(nothing.unwrap().is_none());
|
__END__
|
clippy:
actix-web-actors/tests/test_ws_close.rs#L56
[clippy] reported by reviewdog 🐶
error: used `assert_eq!` with a literal bool
--> actix-web-actors/tests/test_ws_close.rs:56:5
|
56 | assert_eq!(true, finished.is_ok());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
56 - assert_eq!(true, finished.is_ok());
56 + assert!(finished.is_ok());
|
Raw Output:
actix-web-actors/tests/test_ws_close.rs:56:5:e:error: used `assert_eq!` with a literal bool
--> actix-web-actors/tests/test_ws_close.rs:56:5
|
56 | assert_eq!(true, finished.is_ok());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
56 - assert_eq!(true, finished.is_ok());
56 + assert!(finished.is_ok());
|
__END__
|
clippy:
actix-web-actors/tests/test_ws_close.rs#L89
[clippy] reported by reviewdog 🐶
error: used `assert_eq!` with a literal bool
--> actix-web-actors/tests/test_ws_close.rs:89:5
|
89 | assert_eq!(true, nothing.is_ok());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
89 - assert_eq!(true, nothing.is_ok());
89 + assert!(nothing.is_ok());
|
Raw Output:
actix-web-actors/tests/test_ws_close.rs:89:5:e:error: used `assert_eq!` with a literal bool
--> actix-web-actors/tests/test_ws_close.rs:89:5
|
89 | assert_eq!(true, nothing.is_ok());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
89 - assert_eq!(true, nothing.is_ok());
89 + assert!(nothing.is_ok());
|
__END__
|
clippy:
actix-web-actors/tests/test_ws_close.rs#L90
[clippy] reported by reviewdog 🐶
error: used `assert_eq!` with a literal bool
--> actix-web-actors/tests/test_ws_close.rs:90:5
|
90 | assert_eq!(true, nothing.unwrap().is_none());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
90 - assert_eq!(true, nothing.unwrap().is_none());
90 + assert!(nothing.unwrap().is_none());
|
Raw Output:
actix-web-actors/tests/test_ws_close.rs:90:5:e:error: used `assert_eq!` with a literal bool
--> actix-web-actors/tests/test_ws_close.rs:90:5
|
90 | assert_eq!(true, nothing.unwrap().is_none());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
90 - assert_eq!(true, nothing.unwrap().is_none());
90 + assert!(nothing.unwrap().is_none());
|
__END__
|
clippy:
actix-web-actors/tests/test_ws_close.rs#L94
[clippy] reported by reviewdog 🐶
error: used `assert_eq!` with a literal bool
--> actix-web-actors/tests/test_ws_close.rs:94:5
|
94 | assert_eq!(true, finished.is_ok());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
94 - assert_eq!(true, finished.is_ok());
94 + assert!(finished.is_ok());
|
Raw Output:
actix-web-actors/tests/test_ws_close.rs:94:5:e:error: used `assert_eq!` with a literal bool
--> actix-web-actors/tests/test_ws_close.rs:94:5
|
94 | assert_eq!(true, finished.is_ok());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
94 - assert_eq!(true, finished.is_ok());
94 + assert!(finished.is_ok());
|
__END__
|
clippy
reviewdog exited with status code: 1
|