Skip to content

Deferred calls

Deferred calls #147

GitHub Actions / clippy failed Aug 30, 2024 in 0s

clippy

2 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 2
Warning 0
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 failure on line 1111 in massa-execution-worker/src/tests/scenarios_mandatories.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless conversion to the same type: `u64`

error: useless conversion to the same type: `u64`
    --> massa-execution-worker/src/tests/scenarios_mandatories.rs:1111:37
     |
1111 |     defer_reg_slot_changes2.set_gas(call2.max_gas.into());
     |                                     ^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `call2.max_gas`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion

Check failure on line 1094 in massa-execution-worker/src/tests/scenarios_mandatories.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless conversion to the same type: `u64`

error: useless conversion to the same type: `u64`
    --> massa-execution-worker/src/tests/scenarios_mandatories.rs:1094:67
     |
1094 |         gas: massa_deferred_calls::DeferredRegistryGasChange::Set(call.max_gas.into()),
     |                                                                   ^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `call.max_gas`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
     = note: `-D clippy::useless-conversion` implied by `-D warnings`
     = help: to override `-D warnings` add `#[allow(clippy::useless_conversion)]`