Skip to content
GitHub Actions / clippy failed Oct 12, 2023 in 1s

clippy

11 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 11
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 1367 in pallets/dapp-staking-v3/src/types.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

method `get` is never used

error: method `get` is never used
    --> pallets/dapp-staking-v3/src/types.rs:1367:12
     |
1367 |     pub fn get(&self, era: EraNumber) -> Option<&EraReward> {
     |            ^^^

Check failure on line 1339 in pallets/dapp-staking-v3/src/types.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

method `push` is never used

error: method `push` is never used
    --> pallets/dapp-staking-v3/src/types.rs:1339:12
     |
1339 |     pub fn push(
     |            ^^^^

Check failure on line 1333 in pallets/dapp-staking-v3/src/types.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

method `is_empty` is never used

error: method `is_empty` is never used
    --> pallets/dapp-staking-v3/src/types.rs:1333:12
     |
1333 |     pub fn is_empty(&self) -> bool {
     |            ^^^^^^^^

Check failure on line 1328 in pallets/dapp-staking-v3/src/types.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

method `len` is never used

error: method `len` is never used
    --> pallets/dapp-staking-v3/src/types.rs:1328:12
     |
1328 |     pub fn len(&self) -> usize {
     |            ^^^

Check failure on line 1323 in pallets/dapp-staking-v3/src/types.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

method `last_era` is never used

error: method `last_era` is never used
    --> pallets/dapp-staking-v3/src/types.rs:1323:12
     |
1323 |     pub fn last_era(&self) -> EraNumber {
     |            ^^^^^^^^

Check failure on line 1318 in pallets/dapp-staking-v3/src/types.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

method `first_era` is never used

error: method `first_era` is never used
    --> pallets/dapp-staking-v3/src/types.rs:1318:12
     |
1318 |     pub fn first_era(&self) -> EraNumber {
     |            ^^^^^^^^^

Check failure on line 1309 in pallets/dapp-staking-v3/src/types.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

associated function `new` is never used

error: associated function `new` is never used
    --> pallets/dapp-staking-v3/src/types.rs:1309:12
     |
1309 |     pub fn new() -> Self {
     |            ^^^

Check failure on line 1278 in pallets/dapp-staking-v3/src/types.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

method `staked` is never used

error: method `staked` is never used
    --> pallets/dapp-staking-v3/src/types.rs:1278:12
     |
1278 |     pub fn staked(&self) -> Balance {
     |            ^^^^^^

Check failure on line 1273 in pallets/dapp-staking-v3/src/types.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

method `staker_reward_pool` is never used

error: method `staker_reward_pool` is never used
    --> pallets/dapp-staking-v3/src/types.rs:1273:12
     |
1273 |     pub fn staker_reward_pool(&self) -> Balance {
     |            ^^^^^^^^^^^^^^^^^^

Check failure on line 1265 in pallets/dapp-staking-v3/src/types.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

associated function `new` is never used

error: associated function `new` is never used
    --> pallets/dapp-staking-v3/src/types.rs:1265:12
     |
1265 |     pub fn new(staker_reward_pool: Balance, staked: Balance) -> Self {
     |            ^^^
     |
     = note: `-D dead-code` implied by `-D warnings`

Check failure on line 935 in pallets/dapp-staking-v3/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `account`

error: unused variable: `account`
   --> pallets/dapp-staking-v3/src/lib.rs:935:17
    |
935 |             let account = ensure_signed(origin)?;
    |                 ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_account`
    |
    = note: `-D unused-variables` implied by `-D warnings`