Skip to content

On chain claim

On chain claim #109

GitHub Actions / clippy failed Dec 15, 2023 in 1s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (6)

contracts/on-chain-claim/src/contract.rs|119 col 17| warning: redundant field names in struct initialization
--> contracts/on-chain-claim/src/contract.rs:119:17
|
119 | current_streak: current_streak,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: current_streak
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
= note: #[warn(clippy::redundant_field_names)] on by default
contracts/on-chain-claim/src/contract.rs|120 col 17| warning: redundant field names in struct initialization
--> contracts/on-chain-claim/src/contract.rs:120:17
|
120 | last_epoch_claimed: last_epoch_claimed,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: last_epoch_claimed
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
contracts/on-chain-claim/src/contract.rs|121 col 17| warning: redundant field names in struct initialization
--> contracts/on-chain-claim/src/contract.rs:121:17
|
121 | total_epochs_claimed: total_epochs_claimed,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: total_epochs_claimed
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
contracts/on-chain-claim/src/contract.rs|119 col 17| warning: redundant field names in struct initialization
--> contracts/on-chain-claim/src/contract.rs:119:17
|
119 | current_streak: current_streak,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: current_streak
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
= note: #[warn(clippy::redundant_field_names)] on by default
contracts/on-chain-claim/src/contract.rs|120 col 17| warning: redundant field names in struct initialization
--> contracts/on-chain-claim/src/contract.rs:120:17
|
120 | last_epoch_claimed: last_epoch_claimed,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: last_epoch_claimed
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
contracts/on-chain-claim/src/contract.rs|121 col 17| warning: redundant field names in struct initialization
--> contracts/on-chain-claim/src/contract.rs:121:17
|
121 | total_epochs_claimed: total_epochs_claimed,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: total_epochs_claimed
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names

Filtered Findings (1)

contracts/mvx-game-sc/tests/game_sc_blackbox_tests.rs|138 col 5| warning: this function has too many arguments (8/7)
--> contracts/mvx-game-sc/tests/game_sc_blackbox_tests.rs:138:5
|
138 | / fn create_game(
139 | | &mut self,
140 | | waiting_time: u64,
141 | | number_of_players_min: u64,
... |
146 | | expected_game_id: &str,
147 | | ) -> &mut Self {
| |__________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: #[warn(clippy::too_many_arguments)] on by default

Annotations

Check warning on line 119 in contracts/on-chain-claim/src/contract.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/on-chain-claim/src/contract.rs#L119

warning: redundant field names in struct initialization
   --> contracts/on-chain-claim/src/contract.rs:119:17
    |
119 |                 current_streak: current_streak,
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `current_streak`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
    = note: `#[warn(clippy::redundant_field_names)]` on by default
Raw output
contracts/on-chain-claim/src/contract.rs:119:17:w:warning: redundant field names in struct initialization
   --> contracts/on-chain-claim/src/contract.rs:119:17
    |
119 |                 current_streak: current_streak,
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `current_streak`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
    = note: `#[warn(clippy::redundant_field_names)]` on by default


__END__

Check warning on line 120 in contracts/on-chain-claim/src/contract.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/on-chain-claim/src/contract.rs#L120

warning: redundant field names in struct initialization
   --> contracts/on-chain-claim/src/contract.rs:120:17
    |
120 |                 last_epoch_claimed: last_epoch_claimed,
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `last_epoch_claimed`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
Raw output
contracts/on-chain-claim/src/contract.rs:120:17:w:warning: redundant field names in struct initialization
   --> contracts/on-chain-claim/src/contract.rs:120:17
    |
120 |                 last_epoch_claimed: last_epoch_claimed,
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `last_epoch_claimed`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names


__END__

Check warning on line 121 in contracts/on-chain-claim/src/contract.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/on-chain-claim/src/contract.rs#L121

warning: redundant field names in struct initialization
   --> contracts/on-chain-claim/src/contract.rs:121:17
    |
121 |                 total_epochs_claimed: total_epochs_claimed,
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `total_epochs_claimed`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
Raw output
contracts/on-chain-claim/src/contract.rs:121:17:w:warning: redundant field names in struct initialization
   --> contracts/on-chain-claim/src/contract.rs:121:17
    |
121 |                 total_epochs_claimed: total_epochs_claimed,
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `total_epochs_claimed`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names


__END__

Check warning on line 119 in contracts/on-chain-claim/src/contract.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/on-chain-claim/src/contract.rs#L119

warning: redundant field names in struct initialization
   --> contracts/on-chain-claim/src/contract.rs:119:17
    |
119 |                 current_streak: current_streak,
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `current_streak`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
    = note: `#[warn(clippy::redundant_field_names)]` on by default
Raw output
contracts/on-chain-claim/src/contract.rs:119:17:w:warning: redundant field names in struct initialization
   --> contracts/on-chain-claim/src/contract.rs:119:17
    |
119 |                 current_streak: current_streak,
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `current_streak`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
    = note: `#[warn(clippy::redundant_field_names)]` on by default


__END__

Check warning on line 120 in contracts/on-chain-claim/src/contract.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/on-chain-claim/src/contract.rs#L120

warning: redundant field names in struct initialization
   --> contracts/on-chain-claim/src/contract.rs:120:17
    |
120 |                 last_epoch_claimed: last_epoch_claimed,
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `last_epoch_claimed`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
Raw output
contracts/on-chain-claim/src/contract.rs:120:17:w:warning: redundant field names in struct initialization
   --> contracts/on-chain-claim/src/contract.rs:120:17
    |
120 |                 last_epoch_claimed: last_epoch_claimed,
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `last_epoch_claimed`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names


__END__

Check warning on line 121 in contracts/on-chain-claim/src/contract.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/on-chain-claim/src/contract.rs#L121

warning: redundant field names in struct initialization
   --> contracts/on-chain-claim/src/contract.rs:121:17
    |
121 |                 total_epochs_claimed: total_epochs_claimed,
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `total_epochs_claimed`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
Raw output
contracts/on-chain-claim/src/contract.rs:121:17:w:warning: redundant field names in struct initialization
   --> contracts/on-chain-claim/src/contract.rs:121:17
    |
121 |                 total_epochs_claimed: total_epochs_claimed,
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `total_epochs_claimed`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names


__END__