Skip to content

Remove farm penalty code #4189

Remove farm penalty code

Remove farm penalty code #4189

GitHub Actions / clippy failed Oct 22, 2024 in 0s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (1)

energy-integration/farm-boosted-yields/src/lib.rs|166 col 13| warning: variable does not need to be mutable
--> energy-integration/farm-boosted-yields/src/lib.rs:166:13
|
166 | 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 166 in energy-integration/farm-boosted-yields/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] energy-integration/farm-boosted-yields/src/lib.rs#L166

warning: variable does not need to be mutable
   --> energy-integration/farm-boosted-yields/src/lib.rs:166:13
    |
166 |         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:166:13:w:warning: variable does not need to be mutable
   --> energy-integration/farm-boosted-yields/src/lib.rs:166:13
    |
166 |         let mut user_reward = cmp::min(max_rewards, boosted_reward_amount);
    |             ----^^^^^^^^^^^
    |             |
    |             help: remove this `mut`
    |
    = note: `#[warn(unused_mut)]` on by default


__END__