Skip to content

Feature/Gather infos from abis #912

Feature/Gather infos from abis

Feature/Gather infos from abis #912

GitHub Actions / clippy succeeded Feb 16, 2024 in 0s

clippy

4 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 4
Note 0
Help 0

Versions

  • rustc 1.74.1 (a28077b28 2023-12-04)
  • cargo 1.74.1 (ecb9851af 2023-10-18)
  • clippy 0.1.74 (a28077b 2023-12-04)

Annotations

Check warning on line 884 in src/as_execution/abi.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

returning the result of a `let` binding from a block

warning: returning the result of a `let` binding from a block
   --> src/as_execution/abi.rs:884:5
    |
876 |     let ptr = alloc_string_array(&mut ctx, &data);
    |     ---------------------------------------------- unnecessary `let` binding
...
884 |     ptr
    |     ^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
help: return the expression directly
    |
876 ~     
877 |     #[cfg(feature = "execution-trace")]
  ...
883 |     });
884 ~     alloc_string_array(&mut ctx, &data)
    |

Check warning on line 868 in src/as_execution/abi.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

returning the result of a `let` binding from a block

warning: returning the result of a `let` binding from a block
   --> src/as_execution/abi.rs:868:5
    |
860 |     let ptr = alloc_string_array(&mut ctx, &data);
    |     ---------------------------------------------- unnecessary `let` binding
...
868 |     ptr
    |     ^^^
    |
    = 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
    |
860 ~     
861 |     #[cfg(feature = "execution-trace")]
  ...
867 |     });
868 ~     alloc_string_array(&mut ctx, &data)
    |

Check warning on line 121 in src/as_execution/abi.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this let-binding has unit value

warning: this let-binding has unit value
   --> src/as_execution/abi.rs:119:5
    |
119 | /     let res =
120 | |         env.get_interface()
121 | |             .transfer_coins_for(&from_address, &to_address, raw_amount as u64)?;
    | |________________________________________________________________________________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
help: omit the `let` binding
    |
119 ~     env.get_interface()
120 +             .transfer_coins_for(&from_address, &to_address, raw_amount as u64)?;
    |

Check warning on line 82 in src/as_execution/abi.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this let-binding has unit value

warning: this let-binding has unit value
  --> src/as_execution/abi.rs:80:5
   |
80 | /     let res = env
81 | |         .get_interface()
82 | |         .transfer_coins(&to_address, raw_amount as u64)?;
   | |_________________________________________________________^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
   = note: `#[warn(clippy::let_unit_value)]` on by default
help: omit the `let` binding
   |
80 ~     env
81 +         .get_interface()
82 +         .transfer_coins(&to_address, raw_amount as u64)?;
   |