Multisig unit tests #906
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (2)
multisig/tests/multisig_blackbox_test.rs|409 col 48| warning: using clone
on type TestTokenIdentifier<'_>
which implements the Copy
trait
--> multisig/tests/multisig_blackbox_test.rs:409:48
|
409 | .change_default_price_per_gas_unit(WEGLD_TOKEN_ID.clone(), 1u64)
| ^^^^^^^^^^^^^^^^^^^^^^ help: try removing the clone
call: WEGLD_TOKEN_ID
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
= note: #[warn(clippy::clone_on_copy)]
on by default
multisig/tests/multisig_blackbox_test.rs|1566 col 9| warning: using clone
on type u64
which implements the Copy
trait
--> multisig/tests/multisig_blackbox_test.rs:1566:9
|
1566 | slashed_amount.clone(),
| ^^^^^^^^^^^^^^^^^^^^^^ help: try removing the clone
call: slashed_amount
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
Filtered Findings (0)
Annotations
Check warning on line 409 in multisig/tests/multisig_blackbox_test.rs
github-actions / clippy
[clippy] multisig/tests/multisig_blackbox_test.rs#L409
warning: using `clone` on type `TestTokenIdentifier<'_>` which implements the `Copy` trait
--> multisig/tests/multisig_blackbox_test.rs:409:48
|
409 | .change_default_price_per_gas_unit(WEGLD_TOKEN_ID.clone(), 1u64)
| ^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `WEGLD_TOKEN_ID`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
= note: `#[warn(clippy::clone_on_copy)]` on by default
Raw output
multisig/tests/multisig_blackbox_test.rs:409:48:w:warning: using `clone` on type `TestTokenIdentifier<'_>` which implements the `Copy` trait
--> multisig/tests/multisig_blackbox_test.rs:409:48
|
409 | .change_default_price_per_gas_unit(WEGLD_TOKEN_ID.clone(), 1u64)
| ^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `WEGLD_TOKEN_ID`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
= note: `#[warn(clippy::clone_on_copy)]` on by default
__END__
Check warning on line 1566 in multisig/tests/multisig_blackbox_test.rs
github-actions / clippy
[clippy] multisig/tests/multisig_blackbox_test.rs#L1566
warning: using `clone` on type `u64` which implements the `Copy` trait
--> multisig/tests/multisig_blackbox_test.rs:1566:9
|
1566 | slashed_amount.clone(),
| ^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `slashed_amount`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
Raw output
multisig/tests/multisig_blackbox_test.rs:1566:9:w:warning: using `clone` on type `u64` which implements the `Copy` trait
--> multisig/tests/multisig_blackbox_test.rs:1566:9
|
1566 | slashed_amount.clone(),
| ^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `slashed_amount`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
__END__