Skip to content

Add Potlock contract #425

Add Potlock contract

Add Potlock contract #425

GitHub Actions / clippy failed Jul 19, 2024 in 1s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (6)

contracts/potlock/interact-rs/src/potlock_interactor_main.rs|257 col 23| warning: useless conversion to the same type: multiversx_sc_snippets::imports::TokenIdentifier<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>
--> contracts/potlock/interact-rs/src/potlock_interactor_main.rs:257:23
|
257 | .payment((TokenIdentifier::from(token_id), token_nonce, token_amount))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing TokenIdentifier::from(): token_id
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: #[warn(clippy::useless_conversion)] on by default
contracts/potlock/interact-rs/src/potlock_interactor_main.rs|257 col 23| warning: useless conversion to the same type: multiversx_sc_snippets::imports::TokenIdentifier<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>
--> contracts/potlock/interact-rs/src/potlock_interactor_main.rs:257:23
|
257 | .payment((TokenIdentifier::from(token_id), token_nonce, token_amount))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing TokenIdentifier::from(): token_id
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: #[warn(clippy::useless_conversion)] on by default
contracts/potlock/interact-rs/src/potlock_interactor_main.rs|302 col 23| warning: useless conversion to the same type: multiversx_sc_snippets::imports::TokenIdentifier<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>
--> contracts/potlock/interact-rs/src/potlock_interactor_main.rs:302:23
|
302 | .payment((TokenIdentifier::from(token_id), token_nonce, token_amount))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing TokenIdentifier::from(): token_id
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
contracts/potlock/interact-rs/src/potlock_interactor_main.rs|302 col 23| warning: useless conversion to the same type: multiversx_sc_snippets::imports::TokenIdentifier<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>
--> contracts/potlock/interact-rs/src/potlock_interactor_main.rs:302:23
|
302 | .payment((TokenIdentifier::from(token_id), token_nonce, token_amount))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing TokenIdentifier::from(): token_id
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
contracts/potlock/interact-rs/src/potlock_interactor_main.rs|326 col 23| warning: useless conversion to the same type: multiversx_sc_snippets::imports::TokenIdentifier<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>
--> contracts/potlock/interact-rs/src/potlock_interactor_main.rs:326:23
|
326 | .payment((TokenIdentifier::from(token_id), token_nonce, token_amount))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing TokenIdentifier::from(): token_id
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
contracts/potlock/interact-rs/src/potlock_interactor_main.rs|326 col 23| warning: useless conversion to the same type: multiversx_sc_snippets::imports::TokenIdentifier<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>
--> contracts/potlock/interact-rs/src/potlock_interactor_main.rs:326:23
|
326 | .payment((TokenIdentifier::from(token_id), token_nonce, token_amount))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing TokenIdentifier::from(): token_id
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion

Filtered Findings (0)

Annotations

Check warning on line 257 in contracts/potlock/interact-rs/src/potlock_interactor_main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/potlock/interact-rs/src/potlock_interactor_main.rs#L257

warning: useless conversion to the same type: `multiversx_sc_snippets::imports::TokenIdentifier<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>`
   --> contracts/potlock/interact-rs/src/potlock_interactor_main.rs:257:23
    |
257 |             .payment((TokenIdentifier::from(token_id), token_nonce, token_amount))
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `TokenIdentifier::from()`: `token_id`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
    = note: `#[warn(clippy::useless_conversion)]` on by default
Raw output
contracts/potlock/interact-rs/src/potlock_interactor_main.rs:257:23:w:warning: useless conversion to the same type: `multiversx_sc_snippets::imports::TokenIdentifier<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>`
   --> contracts/potlock/interact-rs/src/potlock_interactor_main.rs:257:23
    |
257 |             .payment((TokenIdentifier::from(token_id), token_nonce, token_amount))
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `TokenIdentifier::from()`: `token_id`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
    = note: `#[warn(clippy::useless_conversion)]` on by default


__END__

Check warning on line 257 in contracts/potlock/interact-rs/src/potlock_interactor_main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/potlock/interact-rs/src/potlock_interactor_main.rs#L257

warning: useless conversion to the same type: `multiversx_sc_snippets::imports::TokenIdentifier<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>`
   --> contracts/potlock/interact-rs/src/potlock_interactor_main.rs:257:23
    |
257 |             .payment((TokenIdentifier::from(token_id), token_nonce, token_amount))
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `TokenIdentifier::from()`: `token_id`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
    = note: `#[warn(clippy::useless_conversion)]` on by default
Raw output
contracts/potlock/interact-rs/src/potlock_interactor_main.rs:257:23:w:warning: useless conversion to the same type: `multiversx_sc_snippets::imports::TokenIdentifier<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>`
   --> contracts/potlock/interact-rs/src/potlock_interactor_main.rs:257:23
    |
257 |             .payment((TokenIdentifier::from(token_id), token_nonce, token_amount))
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `TokenIdentifier::from()`: `token_id`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
    = note: `#[warn(clippy::useless_conversion)]` on by default


__END__

Check warning on line 302 in contracts/potlock/interact-rs/src/potlock_interactor_main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/potlock/interact-rs/src/potlock_interactor_main.rs#L302

warning: useless conversion to the same type: `multiversx_sc_snippets::imports::TokenIdentifier<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>`
   --> contracts/potlock/interact-rs/src/potlock_interactor_main.rs:302:23
    |
302 |             .payment((TokenIdentifier::from(token_id), token_nonce, token_amount))
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `TokenIdentifier::from()`: `token_id`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
Raw output
contracts/potlock/interact-rs/src/potlock_interactor_main.rs:302:23:w:warning: useless conversion to the same type: `multiversx_sc_snippets::imports::TokenIdentifier<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>`
   --> contracts/potlock/interact-rs/src/potlock_interactor_main.rs:302:23
    |
302 |             .payment((TokenIdentifier::from(token_id), token_nonce, token_amount))
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `TokenIdentifier::from()`: `token_id`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion


__END__

Check warning on line 302 in contracts/potlock/interact-rs/src/potlock_interactor_main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/potlock/interact-rs/src/potlock_interactor_main.rs#L302

warning: useless conversion to the same type: `multiversx_sc_snippets::imports::TokenIdentifier<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>`
   --> contracts/potlock/interact-rs/src/potlock_interactor_main.rs:302:23
    |
302 |             .payment((TokenIdentifier::from(token_id), token_nonce, token_amount))
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `TokenIdentifier::from()`: `token_id`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
Raw output
contracts/potlock/interact-rs/src/potlock_interactor_main.rs:302:23:w:warning: useless conversion to the same type: `multiversx_sc_snippets::imports::TokenIdentifier<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>`
   --> contracts/potlock/interact-rs/src/potlock_interactor_main.rs:302:23
    |
302 |             .payment((TokenIdentifier::from(token_id), token_nonce, token_amount))
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `TokenIdentifier::from()`: `token_id`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion


__END__

Check warning on line 326 in contracts/potlock/interact-rs/src/potlock_interactor_main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/potlock/interact-rs/src/potlock_interactor_main.rs#L326

warning: useless conversion to the same type: `multiversx_sc_snippets::imports::TokenIdentifier<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>`
   --> contracts/potlock/interact-rs/src/potlock_interactor_main.rs:326:23
    |
326 |             .payment((TokenIdentifier::from(token_id), token_nonce, token_amount))
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `TokenIdentifier::from()`: `token_id`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
Raw output
contracts/potlock/interact-rs/src/potlock_interactor_main.rs:326:23:w:warning: useless conversion to the same type: `multiversx_sc_snippets::imports::TokenIdentifier<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>`
   --> contracts/potlock/interact-rs/src/potlock_interactor_main.rs:326:23
    |
326 |             .payment((TokenIdentifier::from(token_id), token_nonce, token_amount))
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `TokenIdentifier::from()`: `token_id`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion


__END__

Check warning on line 326 in contracts/potlock/interact-rs/src/potlock_interactor_main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/potlock/interact-rs/src/potlock_interactor_main.rs#L326

warning: useless conversion to the same type: `multiversx_sc_snippets::imports::TokenIdentifier<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>`
   --> contracts/potlock/interact-rs/src/potlock_interactor_main.rs:326:23
    |
326 |             .payment((TokenIdentifier::from(token_id), token_nonce, token_amount))
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `TokenIdentifier::from()`: `token_id`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
Raw output
contracts/potlock/interact-rs/src/potlock_interactor_main.rs:326:23:w:warning: useless conversion to the same type: `multiversx_sc_snippets::imports::TokenIdentifier<multiversx_sc_snippets::multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_snippets::multiversx_sc_scenario::api::impl_vh::static_api::StaticApiBackend>>`
   --> contracts/potlock/interact-rs/src/potlock_interactor_main.rs:326:23
    |
326 |             .payment((TokenIdentifier::from(token_id), token_nonce, token_amount))
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `TokenIdentifier::from()`: `token_id`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion


__END__