clippy
7 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 7 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.69.0 (84c898d65 2023-04-16)
- cargo 1.69.0 (6e9a83356 2023-04-12)
- clippy 0.1.69 (84c898d 2023-04-16)
Annotations
Check failure on line 588 in pallets/dapp-staking-v3/src/lib.rs
github-actions / clippy
variable does not need to be mutable
error: variable does not need to be mutable
--> pallets/dapp-staking-v3/src/lib.rs:588:17
|
588 | let mut ledger = Ledger::<T>::get(&account);
| ----^^^^^^
| |
| help: remove this `mut`
|
= note: `-D unused-mut` implied by `-D warnings`
Check failure on line 603 in pallets/dapp-staking-v3/src/lib.rs
github-actions / clippy
unused variable: `amount`
error: unused variable: `amount`
--> pallets/dapp-staking-v3/src/lib.rs:603:32
|
603 | #[pallet::compact] amount: Balance,
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount`
Check failure on line 602 in pallets/dapp-staking-v3/src/lib.rs
github-actions / clippy
unused variable: `smart_contract`
error: unused variable: `smart_contract`
--> pallets/dapp-staking-v3/src/lib.rs:602:13
|
602 | smart_contract: T::SmartContract,
| ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_smart_contract`
Check failure on line 601 in pallets/dapp-staking-v3/src/lib.rs
github-actions / clippy
unused variable: `origin`
error: unused variable: `origin`
--> pallets/dapp-staking-v3/src/lib.rs:601:13
|
601 | origin: OriginFor<T>,
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_origin`
Check failure on line 588 in pallets/dapp-staking-v3/src/lib.rs
github-actions / clippy
unused variable: `ledger`
error: unused variable: `ledger`
--> pallets/dapp-staking-v3/src/lib.rs:588:21
|
588 | let mut ledger = Ledger::<T>::get(&account);
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ledger`
Check failure on line 587 in pallets/dapp-staking-v3/src/lib.rs
github-actions / clippy
unused variable: `protocol_state`
error: unused variable: `protocol_state`
--> pallets/dapp-staking-v3/src/lib.rs:587:17
|
587 | let protocol_state = ActiveProtocolState::<T>::get();
| ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_protocol_state`
Check failure on line 577 in pallets/dapp-staking-v3/src/lib.rs
github-actions / clippy
unused variable: `amount`
error: unused variable: `amount`
--> pallets/dapp-staking-v3/src/lib.rs:577:32
|
577 | #[pallet::compact] amount: Balance,
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount`
|
= note: `-D unused-variables` implied by `-D warnings`