Skip to content

Add withdraw functionality for metastaking rewards #3690

Add withdraw functionality for metastaking rewards

Add withdraw functionality for metastaking rewards #3690

GitHub Actions / clippy failed Jan 22, 2024 in 1s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (2)

farm-staking/farm-staking/tests/farm_staking_test.rs|4 col 5| warning: unused import: managed_address
--> farm-staking/farm-staking/tests/farm_staking_test.rs:4:5
|
4 | managed_address, rust_biguint, whitebox_legacy::TxTokenTransfer, DebugApi,
| ^^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default
farm-staking/farm-staking/tests/farm_staking_test.rs|9 col 22| warning: unused import: CustomRewardsModule
--> farm-staking/farm-staking/tests/farm_staking_test.rs:9:22
|
9 | custom_rewards::{CustomRewardsModule, BLOCKS_IN_YEAR, MAX_PERCENT},
| ^^^^^^^^^^^^^^^^^^^

Filtered Findings (1)

energy-integration/governance-v2/tests/gov_rust_test.rs|74 col 26| warning: accessing first element with proposal.actions.get(0)
--> energy-integration/governance-v2/tests/gov_rust_test.rs:74:26
|
74 | let action = proposal.actions.get(0).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try: proposal.actions.first()
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: #[warn(clippy::get_first)] on by default

Annotations

Check warning on line 4 in farm-staking/farm-staking/tests/farm_staking_test.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] farm-staking/farm-staking/tests/farm_staking_test.rs#L4

warning: unused import: `managed_address`
 --> farm-staking/farm-staking/tests/farm_staking_test.rs:4:5
  |
4 |     managed_address, rust_biguint, whitebox_legacy::TxTokenTransfer, DebugApi,
  |     ^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default
Raw output
farm-staking/farm-staking/tests/farm_staking_test.rs:4:5:w:warning: unused import: `managed_address`
 --> farm-staking/farm-staking/tests/farm_staking_test.rs:4:5
  |
4 |     managed_address, rust_biguint, whitebox_legacy::TxTokenTransfer, DebugApi,
  |     ^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default


__END__

Check warning on line 9 in farm-staking/farm-staking/tests/farm_staking_test.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] farm-staking/farm-staking/tests/farm_staking_test.rs#L9

warning: unused import: `CustomRewardsModule`
 --> farm-staking/farm-staking/tests/farm_staking_test.rs:9:22
  |
9 |     custom_rewards::{CustomRewardsModule, BLOCKS_IN_YEAR, MAX_PERCENT},
  |                      ^^^^^^^^^^^^^^^^^^^
Raw output
farm-staking/farm-staking/tests/farm_staking_test.rs:9:22:w:warning: unused import: `CustomRewardsModule`
 --> farm-staking/farm-staking/tests/farm_staking_test.rs:9:22
  |
9 |     custom_rewards::{CustomRewardsModule, BLOCKS_IN_YEAR, MAX_PERCENT},
  |                      ^^^^^^^^^^^^^^^^^^^


__END__