fix(tests): fix a bunch of tests after the wit/2 integation #94
Annotations
9 errors and 9 warnings
unnecessary use of `to_string`:
rad/src/reducers/mod.rs#L166
error: unnecessary use of `to_string`
--> rad/src/reducers/mod.rs:166:21
|
166 | .remove(&"WIP0017-0018-0019".to_string());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `"WIP0017-0018-0019"`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned
= note: `-D clippy::unnecessary-to-owned` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_to_owned)]`
|
unnecessary use of `get(&outbound_address)
.is_some()`:
p2p/tests/sessions.rs#L437
error: unnecessary use of `get(&outbound_address)
.is_some()`
--> p2p/tests/sessions.rs:437:10
|
437 | .get(&outbound_address)
| __________^
438 | | .is_some());
| |__________________^ help: replace it with: `contains_key(&outbound_address)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_get_then_check
|
unnecessary use of `get(&inbound_address)
.is_some()`:
p2p/tests/sessions.rs#L406
error: unnecessary use of `get(&inbound_address)
.is_some()`
--> p2p/tests/sessions.rs:406:10
|
406 | .get(&inbound_address)
| __________^
407 | | .is_some());
| |__________________^ help: replace it with: `contains_key(&inbound_address)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_get_then_check
|
unnecessary use of `get(&outbound_address)
.is_some()`:
p2p/tests/sessions.rs#L400
error: unnecessary use of `get(&outbound_address)
.is_some()`
--> p2p/tests/sessions.rs:400:10
|
400 | .get(&outbound_address)
| __________^
401 | | .is_some());
| |__________________^ help: replace it with: `contains_key(&outbound_address)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_get_then_check
|
unnecessary use of `get(&inbound_address)
.is_some()`:
p2p/tests/sessions.rs#L385
error: unnecessary use of `get(&inbound_address)
.is_some()`
--> p2p/tests/sessions.rs:385:10
|
385 | .get(&inbound_address)
| __________^
386 | | .is_some());
| |__________________^ help: replace it with: `contains_key(&inbound_address)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_get_then_check
|
unnecessary use of `get(&outbound_address)
.is_some()`:
p2p/tests/sessions.rs#L378
error: unnecessary use of `get(&outbound_address)
.is_some()`
--> p2p/tests/sessions.rs:378:10
|
378 | .get(&outbound_address)
| __________^
379 | | .is_some());
| |__________________^ help: replace it with: `contains_key(&outbound_address)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_get_then_check
= note: `-D clippy::unnecessary-get-then-check` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_get_then_check)]`
|
build_ubuntu
could not compile `witnet_p2p` (test "sessions") due to 6 previous errors
|
build_ubuntu
could not compile `witnet_rad` (lib test) due to 2 previous errors
|
build_ubuntu
Clippy had exited with the 101 exit code
|
build_ubuntu
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/toolchain@v1, actions-rs/cargo@v1, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build_ubuntu
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
build_ubuntu
`/home/runner/work/witnet-rust/witnet-rust/.cargo/config` is deprecated in favor of `config.toml`
|
build_ubuntu
`/home/runner/work/witnet-rust/witnet-rust/.cargo/config` is deprecated in favor of `config.toml`
|
build_ubuntu
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build_ubuntu
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build_ubuntu
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build_ubuntu
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build_ubuntu
`/home/runner/work/witnet-rust/witnet-rust/.cargo/config` is deprecated in favor of `config.toml`
|