farm position functionality #3622
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (2)
dex/farm/src/lib.rs|122 col 83| warning: redundant clone
--> dex/farm/src/lib.rs:122:83
|
122 | let claim_rewards_result = self.claim_rewards::<Wrapper>(orig_caller.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> dex/farm/src/lib.rs:122:72
|
122 | let claim_rewards_result = self.claim_rewards::<Wrapper>(orig_caller.clone());
| ^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
= note: #[warn(clippy::redundant_clone)]
on by default
dex/farm/src/lib.rs|122 col 83| warning: redundant clone
--> dex/farm/src/lib.rs:122:83
|
122 | let claim_rewards_result = self.claim_rewards::<Wrapper>(orig_caller.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> dex/farm/src/lib.rs:122:72
|
122 | let claim_rewards_result = self.claim_rewards::<Wrapper>(orig_caller.clone());
| ^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
= note: #[warn(clippy::redundant_clone)]
on by default
Filtered Findings (11)
dex/farm-with-locked-rewards/src/lib.rs|173 col 27| warning: redundant clone
--> dex/farm-with-locked-rewards/src/lib.rs:173:27
|
173 | rewards.amount.clone(),
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> dex/farm-with-locked-rewards/src/lib.rs:173:13
|
173 | rewards.amount.clone(),
| ^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
= note: #[warn(clippy::redundant_clone)]
on by default
farm-staking/farm-staking-proxy/src/proxy_actions/unstake.rs|49 col 24| warning: redundant clone
--> farm-staking/farm-staking-proxy/src/proxy_actions/unstake.rs:49:24
|
49 | orig_caller.clone(),
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> farm-staking/farm-staking-proxy/src/proxy_actions/unstake.rs:49:13
|
49 | orig_caller.clone(),
| ^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
= note: #[warn(clippy::redundant_clone)]
on by default
locked-asset/proxy_dex/src/proxy_farm.rs|169 col 17| warning: redundant clone
--> locked-asset/proxy_dex/src/proxy_farm.rs:169:17
|
169 | .clone()
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> locked-asset/proxy_dex/src/proxy_farm.rs:168:13
|
168 | / full_wrapped_farm_attributes
169 | | .clone()
| |^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
= note: #[warn(clippy::redundant_clone)]
on by default
dex/farm/tests/farm_setup/farm_rewards_distr_setup.rs|186 col 33| warning: redundant clone
--> dex/farm/tests/farm_setup/farm_rewards_distr_setup.rs:186:33
|
186 | &farm_out_amount.clone(),
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> dex/farm/tests/farm_setup/farm_rewards_distr_setup.rs:186:18
|
186 | &farm_out_amount.clone(),
| ^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
= note: #[warn(clippy::redundant_clone)]
on by default
dex/farm-with-locked-rewards/src/lib.rs|173 col 27| warning: redundant clone
--> dex/farm-with-locked-rewards/src/lib.rs:173:27
|
173 | rewards.amount.clone(),
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> dex/farm-with-locked-rewards/src/lib.rs:173:13
|
173 | rewards.amount.clone(),
| ^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
= note: #[warn(clippy::redundant_clone)]
on by default
farm-staking/farm-staking-proxy/src/proxy_actions/unstake.rs|49 col 24| warning: redundant clone
--> farm-staking/farm-staking-proxy/src/proxy_actions/unstake.rs:49:24
|
49 | orig_caller.clone(),
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> farm-staking/farm-staking-proxy/src/proxy_actions/unstake.rs:49:13
|
49 | orig_caller.clone(),
| ^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
= note: #[warn(clippy::redundant_clone)]
on by default
dex/farm/tests/farm_setup/farm_rewards_distr_setup.rs|186 col 33| warning: redundant clone
--> dex/farm/tests/farm_setup/farm_rewards_distr_setup.rs:186:33
|
186 | &farm_out_amount.clone(),
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> dex/farm/tests/farm_setup/farm_rewards_distr_setup.rs:186:18
|
186 | &farm_out_amount.clone(),
| ^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
= note: #[warn(clippy::redundant_clone)]
on by default
dex/farm/tests/farm_setup/farm_rewards_distr_setup.rs|186 col 33| warning: redundant clone
--> dex/farm/tests/farm_setup/farm_rewards_distr_setup.rs:186:33
|
186 | &farm_out_amount.clone(),
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> dex/farm/tests/farm_setup/farm_rewards_distr_setup.rs:186:18
|
186 | &farm_out_amount.clone(),
| ^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
= note: #[warn(clippy::redundant_clone)]
on by default
locked-asset/proxy_dex/src/proxy_farm.rs|169 col 17| warning: redundant clone
--> locked-asset/proxy_dex/src/proxy_farm.rs:169:17
|
169 | .clone()
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> locked-asset/proxy_dex/src/proxy_farm.rs:168:13
|
168 | / full_wrapped_farm_attributes
169 | | .clone()
| |^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
= note: #[warn(clippy::redundant_clone)]
on by default
dex/farm/tests/farm_setup/farm_rewards_distr_setup.rs|186 col 33| warning: redundant clone
--> dex/farm/tests/farm_setup/farm_rewards_distr_setup.rs:186:33
|
186 | &farm_out_amount.clone(),
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> dex/farm/tests/farm_setup/farm_rewards_distr_setup.rs:186:18
|
186 | &farm_out_amount.clone(),
| ^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
= note: #[warn(clippy::redundant_clone)]
on by default
dex/farm/tests/farm_setup/farm_rewards_distr_setup.rs|186 col 33| warning: redundant clone
--> dex/farm/tests/farm_setup/farm_rewards_distr_setup.rs:186:33
|
186 | &farm_out_amount.clone(),
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> dex/farm/tests/farm_setup/farm_rewards_distr_setup.rs:186:18
|
186 | &farm_out_amount.clone(),
| ^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
= note: #[warn(clippy::redundant_clone)]
on by default
Annotations
Check warning on line 122 in dex/farm/src/lib.rs
github-actions / clippy
[clippy] dex/farm/src/lib.rs#L122
warning: redundant clone
--> dex/farm/src/lib.rs:122:83
|
122 | let claim_rewards_result = self.claim_rewards::<Wrapper<Self>>(orig_caller.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> dex/farm/src/lib.rs:122:72
|
122 | let claim_rewards_result = self.claim_rewards::<Wrapper<Self>>(orig_caller.clone());
| ^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
= note: `#[warn(clippy::redundant_clone)]` on by default
Raw output
dex/farm/src/lib.rs:122:83:w:warning: redundant clone
--> dex/farm/src/lib.rs:122:83
|
122 | let claim_rewards_result = self.claim_rewards::<Wrapper<Self>>(orig_caller.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> dex/farm/src/lib.rs:122:72
|
122 | let claim_rewards_result = self.claim_rewards::<Wrapper<Self>>(orig_caller.clone());
| ^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
= note: `#[warn(clippy::redundant_clone)]` on by default
__END__
Check warning on line 122 in dex/farm/src/lib.rs
github-actions / clippy
[clippy] dex/farm/src/lib.rs#L122
warning: redundant clone
--> dex/farm/src/lib.rs:122:83
|
122 | let claim_rewards_result = self.claim_rewards::<Wrapper<Self>>(orig_caller.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> dex/farm/src/lib.rs:122:72
|
122 | let claim_rewards_result = self.claim_rewards::<Wrapper<Self>>(orig_caller.clone());
| ^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
= note: `#[warn(clippy::redundant_clone)]` on by default
Raw output
dex/farm/src/lib.rs:122:83:w:warning: redundant clone
--> dex/farm/src/lib.rs:122:83
|
122 | let claim_rewards_result = self.claim_rewards::<Wrapper<Self>>(orig_caller.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> dex/farm/src/lib.rs:122:72
|
122 | let claim_rewards_result = self.claim_rewards::<Wrapper<Self>>(orig_caller.clone());
| ^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
= note: `#[warn(clippy::redundant_clone)]` on by default
__END__