update actions #9
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (0)
Filtered Findings (2)
contracts/lottery-esdt/tests/lottery_esdt_blackbox.rs|146 col 5| warning: this function has too many arguments (10/7)
--> contracts/lottery-esdt/tests/lottery_esdt_blackbox.rs:146:5
|
146 | / fn start_lottery_error_params(&mut self, lottery_name_wrong: bool, token_identifier_wrong:u64, ticket_price_wrong:bool, opt_total_tick...
147 | | opt_max_entries_per_user_wrong: bool, opt_prize_distribution_wrong: bool, opt_burn_percentage_wrong: bool, error: ExpectError)
| |_______________________________________________________________________________________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: #[warn(clippy::too_many_arguments)]
on by default
contracts/lottery-esdt/tests/lottery_esdt_blackbox.rs|173 col 9| warning: unneeded late initialization
--> contracts/lottery-esdt/tests/lottery_esdt_blackbox.rs:173:9
|
173 | let token_identifier;
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init
= note: #[warn(clippy::needless_late_init)]
on by default
help: move the declaration token_identifier
here and remove the assignments from the match
arms
|
173 ~
174 |
175 ~ let token_identifier = match token_identifier_wrong{
176 ~ 1 => TestTokenIdentifier::new(""),
177 ~ 2 => TestTokenIdentifier::new("EGLD"),
178 ~ 3 => TOKEN_BURNABLE,
179 ~ _ => TOKEN_IDENTIFIER
180 ~ };
|