Skip to content

Removed set_current_dir_from_workspace from tests #3188

Removed set_current_dir_from_workspace from tests

Removed set_current_dir_from_workspace from tests #3188

GitHub Actions / clippy succeeded May 22, 2024 in 0s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (0)
Filtered Findings (3)

contracts/feature-tests/abi-tester/tests/abi_tester_abi_test.rs|73 col 9| warning: variable does not need to be mutable
--> contracts/feature-tests/abi-tester/tests/abi_tester_abi_test.rs:73:9
|
73 | let mut blockchain = ScenarioWorld::new();
| ----^^^^^^^^^^
| |
| help: remove this mut
|
= note: #[warn(unused_mut)] on by default
framework/scenario/tests/scenarios_self_test.rs|6 col 9| warning: variable does not need to be mutable
--> framework/scenario/tests/scenarios_self_test.rs:6:9
|
6 | let mut blockchain = ScenarioWorld::new();
| ----^^^^^^^^^^
| |
| help: remove this mut
|
= note: #[warn(unused_mut)] on by default
framework/scenario/tests/scenarios_self_test.rs|6 col 5| warning: returning the result of a let binding from a block
--> framework/scenario/tests/scenarios_self_test.rs:7:5
|
6 | let mut blockchain = ScenarioWorld::new();
| ------------------------------------------ unnecessary let binding
7 | blockchain
| ^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
= note: #[warn(clippy::let_and_return)] on by default
help: return the expression directly
|
6 ~
7 ~ ScenarioWorld::new()
|