feat: add emission pallet skeleton #17
clippy
6 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 6 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.83.0 (90b35a623 2024-11-26)
- cargo 1.83.0 (5ffbef321 2024-10-29)
- clippy 0.1.83 (90b35a6 2024-11-26)
Annotations
Check failure on line 55 in pallets/emission0/src/lib.rs
github-actions / clippy
this let-binding has unit value
error: this let-binding has unit value
--> pallets/emission0/src/lib.rs:55:26
|
55 | #[pallet::weight(0)]
| ^ help: omit the `let` binding: `0;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
Check failure on line 46 in pallets/emission0/src/lib.rs
github-actions / clippy
this let-binding has unit value
error: this let-binding has unit value
--> pallets/emission0/src/lib.rs:46:26
|
46 | #[pallet::weight(0)]
| ^ help: omit the `let` binding: `0;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
Check failure on line 36 in pallets/emission0/src/lib.rs
github-actions / clippy
this let-binding has unit value
error: this let-binding has unit value
--> pallets/emission0/src/lib.rs:36:26
|
36 | #[pallet::weight(0)]
| ^ help: omit the `let` binding: `0;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
= note: `-D clippy::let-unit-value` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::let_unit_value)]`
Check failure on line 55 in pallets/emission0/src/lib.rs
github-actions / clippy
use of deprecated constant `pallet::warnings::ConstantWeight_2::_w`: It is deprecated to use hard-coded constant as call weight. Please instead benchmark all calls or put the pallet into `dev` mode. For more info see: <https://github.com/paritytech/substrate/pull/13798>
error: use of deprecated constant `pallet::warnings::ConstantWeight_2::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/13798>
--> pallets/emission0/src/lib.rs:55:26
|
55 | #[pallet::weight(0)]
| ^
Check failure on line 46 in pallets/emission0/src/lib.rs
github-actions / clippy
use of deprecated constant `pallet::warnings::ConstantWeight_1::_w`: It is deprecated to use hard-coded constant as call weight. Please instead benchmark all calls or put the pallet into `dev` mode. For more info see: <https://github.com/paritytech/substrate/pull/13798>
error: use of deprecated constant `pallet::warnings::ConstantWeight_1::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/13798>
--> pallets/emission0/src/lib.rs:46:26
|
46 | #[pallet::weight(0)]
| ^
Check failure on line 36 in pallets/emission0/src/lib.rs
github-actions / clippy
use of deprecated constant `pallet::warnings::ConstantWeight_0::_w`: It is deprecated to use hard-coded constant as call weight. Please instead benchmark all calls or put the pallet into `dev` mode. For more info see: <https://github.com/paritytech/substrate/pull/13798>
error: use of deprecated constant `pallet::warnings::ConstantWeight_0::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/13798>
--> pallets/emission0/src/lib.rs:36:26
|
36 | #[pallet::weight(0)]
| ^
|
= note: `-D deprecated` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(deprecated)]`