Skip to content

removed multiversx-sdk dependency from multiversx-sc-scenario #144

removed multiversx-sdk dependency from multiversx-sc-scenario

removed multiversx-sdk dependency from multiversx-sc-scenario #144

GitHub Actions / clippy failed Jun 18, 2024 in 1s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (2)

framework/snippets/src/network_response.rs|82 col 8| warning: needlessly taken reference of left operand
--> framework/snippets/src/network_response.rs:82:8
|
82 | if &tx.processing_type_on_destination != SC_DEPLOY_PROCESSING_TYPE {
| ----------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| help: use the left value directly: tx.processing_type_on_destination
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
= note: #[warn(clippy::op_ref)] on by default
framework/snippets/src/network_response.rs|82 col 8| warning: needlessly taken reference of left operand
--> framework/snippets/src/network_response.rs:82:8
|
82 | if &tx.processing_type_on_destination != SC_DEPLOY_PROCESSING_TYPE {
| ----------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| help: use the left value directly: tx.processing_type_on_destination
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
= note: #[warn(clippy::op_ref)] on by default

Filtered Findings (0)

Annotations

Check warning on line 82 in framework/snippets/src/network_response.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/snippets/src/network_response.rs#L82

warning: needlessly taken reference of left operand
  --> framework/snippets/src/network_response.rs:82:8
   |
82 |     if &tx.processing_type_on_destination != SC_DEPLOY_PROCESSING_TYPE {
   |        ----------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |        |
   |        help: use the left value directly: `tx.processing_type_on_destination`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
   = note: `#[warn(clippy::op_ref)]` on by default
Raw output
framework/snippets/src/network_response.rs:82:8:w:warning: needlessly taken reference of left operand
  --> framework/snippets/src/network_response.rs:82:8
   |
82 |     if &tx.processing_type_on_destination != SC_DEPLOY_PROCESSING_TYPE {
   |        ----------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |        |
   |        help: use the left value directly: `tx.processing_type_on_destination`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
   = note: `#[warn(clippy::op_ref)]` on by default


__END__

Check warning on line 82 in framework/snippets/src/network_response.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/snippets/src/network_response.rs#L82

warning: needlessly taken reference of left operand
  --> framework/snippets/src/network_response.rs:82:8
   |
82 |     if &tx.processing_type_on_destination != SC_DEPLOY_PROCESSING_TYPE {
   |        ----------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |        |
   |        help: use the left value directly: `tx.processing_type_on_destination`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
   = note: `#[warn(clippy::op_ref)]` on by default
Raw output
framework/snippets/src/network_response.rs:82:8:w:warning: needlessly taken reference of left operand
  --> framework/snippets/src/network_response.rs:82:8
   |
82 |     if &tx.processing_type_on_destination != SC_DEPLOY_PROCESSING_TYPE {
   |        ----------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |        |
   |        help: use the left value directly: `tx.processing_type_on_destination`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
   = note: `#[warn(clippy::op_ref)]` on by default


__END__