Tier params & config init solution #1375
clippy
4 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 4 |
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 1500 in pallets/dapp-staking-v3/src/types.rs
github-actions / clippy
associated function `calculate_number_of_slots` is never used
error: associated function `calculate_number_of_slots` is never used
--> pallets/dapp-staking-v3/src/types.rs:1500:12
|
1500 | pub fn calculate_number_of_slots(native_price: FixedU64) -> u16 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
Check failure on line 1435 in pallets/dapp-staking-v3/src/types.rs
github-actions / clippy
method `calculate_new` is never used
error: method `calculate_new` is never used
--> pallets/dapp-staking-v3/src/types.rs:1435:12
|
1435 | pub fn calculate_new(&self, native_price: FixedU64, params: &TierSlotParameters<NT>) -> Self {
| ^^^^^^^^^^^^^
Check failure on line 1424 in pallets/dapp-staking-v3/src/types.rs
github-actions / clippy
method `is_valid` is never used
error: method `is_valid` is never used
--> pallets/dapp-staking-v3/src/types.rs:1424:12
|
1424 | pub fn is_valid(&self) -> bool {
| ^^^^^^^^
Check failure on line 1395 in pallets/dapp-staking-v3/src/types.rs
github-actions / clippy
method `is_valid` is never used
error: method `is_valid` is never used
--> pallets/dapp-staking-v3/src/types.rs:1395:12
|
1395 | pub fn is_valid(&self) -> bool {
| ^^^^^^^^
|
= note: `-D dead-code` implied by `-D warnings`