reviewdog [clippy] report
reported by reviewdog 🐶
Findings (1)
contracts/examples/adder/tests/adder_mandos_constructed_with_calls_test.rs|27 col 10| error[E0283]: type annotations needed for multiversx_sc_scenario::scenario_model::TypedResponse<RequestedResult>
--> contracts/examples/adder/tests/adder_mandos_constructed_with_calls_test.rs:34:27
|
27 | .sc_deploy_use_result(
| -------------------- type must be known at this point
...
34 | |new_address, _| {
| ^
|
= note: multiple impl
s satisfying _: multiversx_sc::multiversx_sc_codec::CodecFrom<()>
found in the multiversx_sc_codec
crate:
- impl<T, U> multiversx_sc::multiversx_sc_codec::CodecFrom for multiversx_sc::multiversx_sc_codec::multi_types::OptionalValue
where T: multiversx_sc::multiversx_sc_codec::TopEncodeMulti, T: multiversx_sc::multiversx_sc_codec::TopDecodeMulti, U: multiversx_sc::multiversx_sc_codec::CodecFrom, U: multiversx_sc::multiversx_sc_codec::CodecFromSelf, U: multiversx_sc::multiversx_sc_codec::TopEncodeMulti, U: multiversx_sc::multiversx_sc_codec::TopDecodeMulti;
- impl multiversx_sc::multiversx_sc_codec::CodecFrom for T
where T: multiversx_sc::multiversx_sc_codec::TopEncodeMulti, T: multiversx_sc::multiversx_sc_codec::TopDecodeMulti, T: multiversx_sc::multiversx_sc_codec::CodecFromSelf;
- impl multiversx_sc::multiversx_sc_codec::CodecFrom for multiversx_sc::multiversx_sc_codec::multi_types::PlaceholderOutput
where T: multiversx_sc::multiversx_sc_codec::TopEncodeMulti, T: multiversx_sc::multiversx_sc_codec::CodecFromSelf;
note: required by a bound in multiversx_sc_scenario::facade::scenario_world_steps::<impl multiversx_sc_scenario::ScenarioWorld>::sc_deploy_use_result
--> /home/runner/work/mx-sdk-rs/mx-sdk-rs/framework/scenario/src/facade/scenario_world_steps.rs:169:26
|
169 | RequestedResult: CodecFrom,
| ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in multiversx_sc_scenario::facade::scenario_world_steps::<impl ScenarioWorld>::sc_deploy_use_result
help: consider giving this closure parameter an explicit type, where the type for type parameter RequestedResult
is specified
|
34 | |new_address, _: multiversx_sc_scenario::scenario_model::TypedResponse| {
| ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Filtered Findings (5)
contracts/feature-tests/rust-testing-framework-tester/tests/rust_mandos_v1_test.rs|1217 col 5| warning: this let-binding has unit value
--> contracts/feature-tests/rust-testing-framework-tester/tests/rust_mandos_v1_test.rs:1217:5
|
1217 | let _ = DebugApi::dummy();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: omit the let
binding: DebugApi::dummy();
|
= 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
contracts/feature-tests/rust-testing-framework-tester/tests/rust_mandos_v1_test.rs|1247 col 5| warning: this let-binding has unit value
--> contracts/feature-tests/rust-testing-framework-tester/tests/rust_mandos_v1_test.rs:1247:5
|
1247 | let _ = DebugApi::dummy();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: omit the let
binding: DebugApi::dummy();
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
contracts/feature-tests/rust-testing-framework-tester/tests/rust_mandos_v1_test.rs|1284 col 5| warning: this let-binding has unit value
--> contracts/feature-tests/rust-testing-framework-tester/tests/rust_mandos_v1_test.rs:1284:5
|
1284 | let _ = DebugApi::dummy();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: omit the let
binding: DebugApi::dummy();
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
contracts/examples/rewards-distribution/tests/test_compute_brackets.rs|12 col 5| warning: this let-binding has unit value
--> contracts/examples/rewards-distribution/tests/test_compute_brackets.rs:12:5
|
12 | let _ = DebugApi::dummy();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: omit the let
binding: DebugApi::dummy();
|
= 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
contracts/examples/rewards-distribution/tests/test_raffle_and_claim.rs|18 col 5| warning: this let-binding has unit value
--> contracts/examples/rewards-distribution/tests/test_raffle_and_claim.rs:18:5
|
18 | let _ = DebugApi::dummy();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: omit the let
binding: DebugApi::dummy();
|
= 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
Annotations
github-actions / clippy
[clippy] contracts/examples/adder/tests/adder_mandos_constructed_with_calls_test.rs#L27
error[E0283]: type annotations needed for `multiversx_sc_scenario::scenario_model::TypedResponse<RequestedResult>`
--> contracts/examples/adder/tests/adder_mandos_constructed_with_calls_test.rs:34:27
|
27 | .sc_deploy_use_result(
| -------------------- type must be known at this point
...
34 | |new_address, _| {
| ^
|
= note: multiple `impl`s satisfying `_: multiversx_sc::multiversx_sc_codec::CodecFrom<()>` found in the `multiversx_sc_codec` crate:
- impl<T, U> multiversx_sc::multiversx_sc_codec::CodecFrom<U> for multiversx_sc::multiversx_sc_codec::multi_types::OptionalValue<T>
where T: multiversx_sc::multiversx_sc_codec::TopEncodeMulti, T: multiversx_sc::multiversx_sc_codec::TopDecodeMulti, U: multiversx_sc::multiversx_sc_codec::CodecFrom<T>, U: multiversx_sc::multiversx_sc_codec::CodecFromSelf, U: multiversx_sc::multiversx_sc_codec::TopEncodeMulti, U: multiversx_sc::multiversx_sc_codec::TopDecodeMulti;
- impl<T> multiversx_sc::multiversx_sc_codec::CodecFrom<T> for T
where T: multiversx_sc::multiversx_sc_codec::TopEncodeMulti, T: multiversx_sc::multiversx_sc_codec::TopDecodeMulti, T: multiversx_sc::multiversx_sc_codec::CodecFromSelf;
- impl<T> multiversx_sc::multiversx_sc_codec::CodecFrom<T> for multiversx_sc::multiversx_sc_codec::multi_types::PlaceholderOutput
where T: multiversx_sc::multiversx_sc_codec::TopEncodeMulti, T: multiversx_sc::multiversx_sc_codec::CodecFromSelf;
note: required by a bound in `multiversx_sc_scenario::facade::scenario_world_steps::<impl multiversx_sc_scenario::ScenarioWorld>::sc_deploy_use_result`
--> /home/runner/work/mx-sdk-rs/mx-sdk-rs/framework/scenario/src/facade/scenario_world_steps.rs:169:26
|
169 | RequestedResult: CodecFrom<OriginalResult>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `multiversx_sc_scenario::facade::scenario_world_steps::<impl ScenarioWorld>::sc_deploy_use_result`
help: consider giving this closure parameter an explicit type, where the type for type parameter `RequestedResult` is specified
|
34 | |new_address, _: multiversx_sc_scenario::scenario_model::TypedResponse<RequestedResult>| {
| ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Raw output
contracts/examples/adder/tests/adder_mandos_constructed_with_calls_test.rs:27:10:e:error[E0283]: type annotations needed for `multiversx_sc_scenario::scenario_model::TypedResponse<RequestedResult>`
--> contracts/examples/adder/tests/adder_mandos_constructed_with_calls_test.rs:34:27
|
27 | .sc_deploy_use_result(
| -------------------- type must be known at this point
...
34 | |new_address, _| {
| ^
|
= note: multiple `impl`s satisfying `_: multiversx_sc::multiversx_sc_codec::CodecFrom<()>` found in the `multiversx_sc_codec` crate:
- impl<T, U> multiversx_sc::multiversx_sc_codec::CodecFrom<U> for multiversx_sc::multiversx_sc_codec::multi_types::OptionalValue<T>
where T: multiversx_sc::multiversx_sc_codec::TopEncodeMulti, T: multiversx_sc::multiversx_sc_codec::TopDecodeMulti, U: multiversx_sc::multiversx_sc_codec::CodecFrom<T>, U: multiversx_sc::multiversx_sc_codec::CodecFromSelf, U: multiversx_sc::multiversx_sc_codec::TopEncodeMulti, U: multiversx_sc::multiversx_sc_codec::TopDecodeMulti;
- impl<T> multiversx_sc::multiversx_sc_codec::CodecFrom<T> for T
where T: multiversx_sc::multiversx_sc_codec::TopEncodeMulti, T: multiversx_sc::multiversx_sc_codec::TopDecodeMulti, T: multiversx_sc::multiversx_sc_codec::CodecFromSelf;
- impl<T> multiversx_sc::multiversx_sc_codec::CodecFrom<T> for multiversx_sc::multiversx_sc_codec::multi_types::PlaceholderOutput
where T: multiversx_sc::multiversx_sc_codec::TopEncodeMulti, T: multiversx_sc::multiversx_sc_codec::CodecFromSelf;
note: required by a bound in `multiversx_sc_scenario::facade::scenario_world_steps::<impl multiversx_sc_scenario::ScenarioWorld>::sc_deploy_use_result`
--> /home/runner/work/mx-sdk-rs/mx-sdk-rs/framework/scenario/src/facade/scenario_world_steps.rs:169:26
|
169 | RequestedResult: CodecFrom<OriginalResult>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `multiversx_sc_scenario::facade::scenario_world_steps::<impl ScenarioWorld>::sc_deploy_use_result`
help: consider giving this closure parameter an explicit type, where the type for type parameter `RequestedResult` is specified
|
34 | |new_address, _: multiversx_sc_scenario::scenario_model::TypedResponse<RequestedResult>| {
| ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
__END__