clippy fix #4041
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (10)
dex/interactor/src/structs.rs|47 col 12| warning: fields other_token_payment
, lp_farm_rewards
, staking_rewards
, and unbond_staking_farm_token
are never read
--> dex/interactor/src/structs.rs:48:9
|
47 | pub struct InteractorUnstakeResult {
| ----------------------- fields in this struct
48 | pub other_token_payment: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^
49 | pub lp_farm_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^
50 | pub staking_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^
51 | pub unbond_staking_farm_token: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)]
on by default
dex/interactor/src/structs.rs|65 col 12| warning: fields dual_yield_tokens
, staking_boosted_rewards
, and lp_farm_boosted_rewards
are never read
--> dex/interactor/src/structs.rs:66:9
|
65 | pub struct InteractorStakeProxyResult {
| -------------------------- fields in this struct
66 | pub dual_yield_tokens: InteractorToken,
| ^^^^^^^^^^^^^^^^^
67 | pub staking_boosted_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^^^
68 | pub lp_farm_boosted_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^^^
dex/interactor/src/structs.rs|81 col 12| warning: fields lp_farm_rewards
, staking_farm_rewards
, and new_dual_yield_tokens
are never read
--> dex/interactor/src/structs.rs:82:9
|
81 | pub struct InteractorClaimDualYieldResult {
| ------------------------------ fields in this struct
82 | pub lp_farm_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^
83 | pub staking_farm_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^
84 | pub new_dual_yield_tokens: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^
dex/interactor/src/structs.rs|112 col 12| warning: fields amount
, last_update_epoch
, and total_locked_tokens
are never read
--> dex/interactor/src/structs.rs:113:9
|
112 | pub struct InteractorEnergy {
| ---------------- fields in this struct
113 | pub amount: RustBigInt,
| ^^^^^^
114 | pub last_update_epoch: u64,
| ^^^^^^^^^^^^^^^^^
115 | pub total_locked_tokens: RustBigUint,
| ^^^^^^^^^^^^^^^^^^^
dex/interactor/src/structs.rs|47 col 12| warning: fields other_token_payment
, lp_farm_rewards
, staking_rewards
, and unbond_staking_farm_token
are never read
--> dex/interactor/src/structs.rs:48:9
|
47 | pub struct InteractorUnstakeResult {
| ----------------------- fields in this struct
48 | pub other_token_payment: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^
49 | pub lp_farm_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^
50 | pub staking_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^
51 | pub unbond_staking_farm_token: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)]
on by default
dex/interactor/src/structs.rs|65 col 12| warning: fields dual_yield_tokens
, staking_boosted_rewards
, and lp_farm_boosted_rewards
are never read
--> dex/interactor/src/structs.rs:66:9
|
65 | pub struct InteractorStakeProxyResult {
| -------------------------- fields in this struct
66 | pub dual_yield_tokens: InteractorToken,
| ^^^^^^^^^^^^^^^^^
67 | pub staking_boosted_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^^^
68 | pub lp_farm_boosted_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^^^
dex/interactor/src/structs.rs|81 col 12| warning: fields lp_farm_rewards
, staking_farm_rewards
, and new_dual_yield_tokens
are never read
--> dex/interactor/src/structs.rs:82:9
|
81 | pub struct InteractorClaimDualYieldResult {
| ------------------------------ fields in this struct
82 | pub lp_farm_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^
83 | pub staking_farm_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^
84 | pub new_dual_yield_tokens: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^
dex/interactor/src/structs.rs|112 col 12| warning: fields amount
, last_update_epoch
, and total_locked_tokens
are never read
--> dex/interactor/src/structs.rs:113:9
|
112 | pub struct InteractorEnergy {
| ---------------- fields in this struct
113 | pub amount: RustBigInt,
| ^^^^^^
114 | pub last_update_epoch: u64,
| ^^^^^^^^^^^^^^^^^
115 | pub total_locked_tokens: RustBigUint,
| ^^^^^^^^^^^^^^^^^^^
dex/interactor/src/structs.rs|1 col 1| error: useless lint attribute
--> dex/interactor/src/structs.rs:1:1
|
1 | #[allow(dead_code)]
| ^^^^^^^^^^^^^^^^^^^ help: if you just forgot a !
, use: #![allow(dead_code)]
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute
= note: #[deny(clippy::useless_attribute)]
on by default
dex/interactor/src/structs.rs|1 col 1| error: useless lint attribute
--> dex/interactor/src/structs.rs:1:1
|
1 | #[allow(dead_code)]
| ^^^^^^^^^^^^^^^^^^^ help: if you just forgot a !
, use: #![allow(dead_code)]
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute
= note: #[deny(clippy::useless_attribute)]
on by default
Filtered Findings (0)
Annotations
Check warning on line 47 in dex/interactor/src/structs.rs
github-actions / clippy
[clippy] dex/interactor/src/structs.rs#L47
warning: fields `other_token_payment`, `lp_farm_rewards`, `staking_rewards`, and `unbond_staking_farm_token` are never read
--> dex/interactor/src/structs.rs:48:9
|
47 | pub struct InteractorUnstakeResult {
| ----------------------- fields in this struct
48 | pub other_token_payment: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^
49 | pub lp_farm_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^
50 | pub staking_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^
51 | pub unbond_staking_farm_token: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
Raw output
dex/interactor/src/structs.rs:47:12:w:warning: fields `other_token_payment`, `lp_farm_rewards`, `staking_rewards`, and `unbond_staking_farm_token` are never read
--> dex/interactor/src/structs.rs:48:9
|
47 | pub struct InteractorUnstakeResult {
| ----------------------- fields in this struct
48 | pub other_token_payment: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^
49 | pub lp_farm_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^
50 | pub staking_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^
51 | pub unbond_staking_farm_token: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
__END__
Check warning on line 65 in dex/interactor/src/structs.rs
github-actions / clippy
[clippy] dex/interactor/src/structs.rs#L65
warning: fields `dual_yield_tokens`, `staking_boosted_rewards`, and `lp_farm_boosted_rewards` are never read
--> dex/interactor/src/structs.rs:66:9
|
65 | pub struct InteractorStakeProxyResult {
| -------------------------- fields in this struct
66 | pub dual_yield_tokens: InteractorToken,
| ^^^^^^^^^^^^^^^^^
67 | pub staking_boosted_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^^^
68 | pub lp_farm_boosted_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^^^
Raw output
dex/interactor/src/structs.rs:65:12:w:warning: fields `dual_yield_tokens`, `staking_boosted_rewards`, and `lp_farm_boosted_rewards` are never read
--> dex/interactor/src/structs.rs:66:9
|
65 | pub struct InteractorStakeProxyResult {
| -------------------------- fields in this struct
66 | pub dual_yield_tokens: InteractorToken,
| ^^^^^^^^^^^^^^^^^
67 | pub staking_boosted_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^^^
68 | pub lp_farm_boosted_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^^^
__END__
Check warning on line 81 in dex/interactor/src/structs.rs
github-actions / clippy
[clippy] dex/interactor/src/structs.rs#L81
warning: fields `lp_farm_rewards`, `staking_farm_rewards`, and `new_dual_yield_tokens` are never read
--> dex/interactor/src/structs.rs:82:9
|
81 | pub struct InteractorClaimDualYieldResult {
| ------------------------------ fields in this struct
82 | pub lp_farm_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^
83 | pub staking_farm_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^
84 | pub new_dual_yield_tokens: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^
Raw output
dex/interactor/src/structs.rs:81:12:w:warning: fields `lp_farm_rewards`, `staking_farm_rewards`, and `new_dual_yield_tokens` are never read
--> dex/interactor/src/structs.rs:82:9
|
81 | pub struct InteractorClaimDualYieldResult {
| ------------------------------ fields in this struct
82 | pub lp_farm_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^
83 | pub staking_farm_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^
84 | pub new_dual_yield_tokens: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^
__END__
Check warning on line 112 in dex/interactor/src/structs.rs
github-actions / clippy
[clippy] dex/interactor/src/structs.rs#L112
warning: fields `amount`, `last_update_epoch`, and `total_locked_tokens` are never read
--> dex/interactor/src/structs.rs:113:9
|
112 | pub struct InteractorEnergy {
| ---------------- fields in this struct
113 | pub amount: RustBigInt,
| ^^^^^^
114 | pub last_update_epoch: u64,
| ^^^^^^^^^^^^^^^^^
115 | pub total_locked_tokens: RustBigUint,
| ^^^^^^^^^^^^^^^^^^^
Raw output
dex/interactor/src/structs.rs:112:12:w:warning: fields `amount`, `last_update_epoch`, and `total_locked_tokens` are never read
--> dex/interactor/src/structs.rs:113:9
|
112 | pub struct InteractorEnergy {
| ---------------- fields in this struct
113 | pub amount: RustBigInt,
| ^^^^^^
114 | pub last_update_epoch: u64,
| ^^^^^^^^^^^^^^^^^
115 | pub total_locked_tokens: RustBigUint,
| ^^^^^^^^^^^^^^^^^^^
__END__
Check warning on line 47 in dex/interactor/src/structs.rs
github-actions / clippy
[clippy] dex/interactor/src/structs.rs#L47
warning: fields `other_token_payment`, `lp_farm_rewards`, `staking_rewards`, and `unbond_staking_farm_token` are never read
--> dex/interactor/src/structs.rs:48:9
|
47 | pub struct InteractorUnstakeResult {
| ----------------------- fields in this struct
48 | pub other_token_payment: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^
49 | pub lp_farm_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^
50 | pub staking_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^
51 | pub unbond_staking_farm_token: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
Raw output
dex/interactor/src/structs.rs:47:12:w:warning: fields `other_token_payment`, `lp_farm_rewards`, `staking_rewards`, and `unbond_staking_farm_token` are never read
--> dex/interactor/src/structs.rs:48:9
|
47 | pub struct InteractorUnstakeResult {
| ----------------------- fields in this struct
48 | pub other_token_payment: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^
49 | pub lp_farm_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^
50 | pub staking_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^
51 | pub unbond_staking_farm_token: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
__END__
Check warning on line 65 in dex/interactor/src/structs.rs
github-actions / clippy
[clippy] dex/interactor/src/structs.rs#L65
warning: fields `dual_yield_tokens`, `staking_boosted_rewards`, and `lp_farm_boosted_rewards` are never read
--> dex/interactor/src/structs.rs:66:9
|
65 | pub struct InteractorStakeProxyResult {
| -------------------------- fields in this struct
66 | pub dual_yield_tokens: InteractorToken,
| ^^^^^^^^^^^^^^^^^
67 | pub staking_boosted_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^^^
68 | pub lp_farm_boosted_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^^^
Raw output
dex/interactor/src/structs.rs:65:12:w:warning: fields `dual_yield_tokens`, `staking_boosted_rewards`, and `lp_farm_boosted_rewards` are never read
--> dex/interactor/src/structs.rs:66:9
|
65 | pub struct InteractorStakeProxyResult {
| -------------------------- fields in this struct
66 | pub dual_yield_tokens: InteractorToken,
| ^^^^^^^^^^^^^^^^^
67 | pub staking_boosted_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^^^
68 | pub lp_farm_boosted_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^^^
__END__
Check warning on line 81 in dex/interactor/src/structs.rs
github-actions / clippy
[clippy] dex/interactor/src/structs.rs#L81
warning: fields `lp_farm_rewards`, `staking_farm_rewards`, and `new_dual_yield_tokens` are never read
--> dex/interactor/src/structs.rs:82:9
|
81 | pub struct InteractorClaimDualYieldResult {
| ------------------------------ fields in this struct
82 | pub lp_farm_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^
83 | pub staking_farm_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^
84 | pub new_dual_yield_tokens: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^
Raw output
dex/interactor/src/structs.rs:81:12:w:warning: fields `lp_farm_rewards`, `staking_farm_rewards`, and `new_dual_yield_tokens` are never read
--> dex/interactor/src/structs.rs:82:9
|
81 | pub struct InteractorClaimDualYieldResult {
| ------------------------------ fields in this struct
82 | pub lp_farm_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^
83 | pub staking_farm_rewards: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^
84 | pub new_dual_yield_tokens: InteractorToken,
| ^^^^^^^^^^^^^^^^^^^^^
__END__
Check warning on line 112 in dex/interactor/src/structs.rs
github-actions / clippy
[clippy] dex/interactor/src/structs.rs#L112
warning: fields `amount`, `last_update_epoch`, and `total_locked_tokens` are never read
--> dex/interactor/src/structs.rs:113:9
|
112 | pub struct InteractorEnergy {
| ---------------- fields in this struct
113 | pub amount: RustBigInt,
| ^^^^^^
114 | pub last_update_epoch: u64,
| ^^^^^^^^^^^^^^^^^
115 | pub total_locked_tokens: RustBigUint,
| ^^^^^^^^^^^^^^^^^^^
Raw output
dex/interactor/src/structs.rs:112:12:w:warning: fields `amount`, `last_update_epoch`, and `total_locked_tokens` are never read
--> dex/interactor/src/structs.rs:113:9
|
112 | pub struct InteractorEnergy {
| ---------------- fields in this struct
113 | pub amount: RustBigInt,
| ^^^^^^
114 | pub last_update_epoch: u64,
| ^^^^^^^^^^^^^^^^^
115 | pub total_locked_tokens: RustBigUint,
| ^^^^^^^^^^^^^^^^^^^
__END__
Check failure on line 1 in dex/interactor/src/structs.rs
github-actions / clippy
[clippy] dex/interactor/src/structs.rs#L1
error: useless lint attribute
--> dex/interactor/src/structs.rs:1:1
|
1 | #[allow(dead_code)]
| ^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(dead_code)]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute
= note: `#[deny(clippy::useless_attribute)]` on by default
Raw output
dex/interactor/src/structs.rs:1:1:e:error: useless lint attribute
--> dex/interactor/src/structs.rs:1:1
|
1 | #[allow(dead_code)]
| ^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(dead_code)]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute
= note: `#[deny(clippy::useless_attribute)]` on by default
__END__
Check failure on line 1 in dex/interactor/src/structs.rs
github-actions / clippy
[clippy] dex/interactor/src/structs.rs#L1
error: useless lint attribute
--> dex/interactor/src/structs.rs:1:1
|
1 | #[allow(dead_code)]
| ^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(dead_code)]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute
= note: `#[deny(clippy::useless_attribute)]` on by default
Raw output
dex/interactor/src/structs.rs:1:1:e:error: useless lint attribute
--> dex/interactor/src/structs.rs:1:1
|
1 | #[allow(dead_code)]
| ^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(dead_code)]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute
= note: `#[deny(clippy::useless_attribute)]` on by default
__END__