Remove farm penalty code #4191
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (2)
energy-integration/farm-boosted-yields/src/lib.rs|168 col 13| warning: variable does not need to be mutable
--> energy-integration/farm-boosted-yields/src/lib.rs:168:13
|
168 | let mut user_reward = cmp::min(max_rewards, boosted_reward_amount);
| ----^^^^^^^^^^^
| |
| help: remove this mut
|
= note: #[warn(unused_mut)]
on by default
energy-integration/farm-boosted-yields/src/lib.rs|168 col 13| warning: variable does not need to be mutable
--> energy-integration/farm-boosted-yields/src/lib.rs:168:13
|
168 | let mut user_reward = cmp::min(max_rewards, boosted_reward_amount);
| ----^^^^^^^^^^^
| |
| help: remove this mut
|
= note: #[warn(unused_mut)]
on by default
Filtered Findings (0)
Annotations
Check warning on line 168 in energy-integration/farm-boosted-yields/src/lib.rs
github-actions / clippy
[clippy] energy-integration/farm-boosted-yields/src/lib.rs#L168
warning: variable does not need to be mutable
--> energy-integration/farm-boosted-yields/src/lib.rs:168:13
|
168 | let mut user_reward = cmp::min(max_rewards, boosted_reward_amount);
| ----^^^^^^^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
Raw output
energy-integration/farm-boosted-yields/src/lib.rs:168:13:w:warning: variable does not need to be mutable
--> energy-integration/farm-boosted-yields/src/lib.rs:168:13
|
168 | let mut user_reward = cmp::min(max_rewards, boosted_reward_amount);
| ----^^^^^^^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
__END__
Check warning on line 168 in energy-integration/farm-boosted-yields/src/lib.rs
github-actions / clippy
[clippy] energy-integration/farm-boosted-yields/src/lib.rs#L168
warning: variable does not need to be mutable
--> energy-integration/farm-boosted-yields/src/lib.rs:168:13
|
168 | let mut user_reward = cmp::min(max_rewards, boosted_reward_amount);
| ----^^^^^^^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
Raw output
energy-integration/farm-boosted-yields/src/lib.rs:168:13:w:warning: variable does not need to be mutable
--> energy-integration/farm-boosted-yields/src/lib.rs:168:13
|
168 | let mut user_reward = cmp::min(max_rewards, boosted_reward_amount);
| ----^^^^^^^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
__END__