merge: master #1941
GitHub Actions / clippy
failed
Feb 24, 2024 in 0s
clippy
2 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 2 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.70.0 (90c541806 2023-05-31)
- cargo 1.70.0 (ec8a8a0ca 2023-04-25)
- clippy 0.1.70 (90c5418 2023-05-31)
Annotations
Check failure on line 318 in pallets/dapp-staking-v3/src/benchmarking/utils.rs
github-actions / clippy
the trait bound `<<<T as frame_system::Config>::Block as sp_runtime::traits::Block>::Header as sp_runtime::traits::Header>::Number: frame_support::traits::IsType<u32>` is not satisfied
error[E0277]: the trait bound `<<<T as frame_system::Config>::Block as sp_runtime::traits::Block>::Header as sp_runtime::traits::Header>::Number: frame_support::traits::IsType<u32>` is not satisfied
--> pallets/dapp-staking-v3/src/benchmarking/utils.rs:318:48
|
318 | pub(super) fn max_claim_size_ongoing_period<T: Config>() -> u32 {
| ^^^^^^ the trait `frame_support::traits::IsType<u32>` is not implemented for `<<<T as frame_system::Config>::Block as sp_runtime::traits::Block>::Header as sp_runtime::traits::Header>::Number`
|
note: required by a bound in `pallet::Config`
--> pallets/dapp-staking-v3/src/lib.rs:111:31
|
109 | pub trait Config: frame_system::Config
| ------ required by a bound in this trait
110 | where
111 | BlockNumberFor<Self>: IsType<BlockNumber>,
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `Config`
help: consider further restricting the associated type
|
318 | pub(super) fn max_claim_size_ongoing_period<T: Config>() -> u32 where <<<T as frame_system::Config>::Block as sp_runtime::traits::Block>::Header as sp_runtime::traits::Header>::Number: frame_support::traits::IsType<u32> {
| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Check failure on line 311 in pallets/dapp-staking-v3/src/benchmarking/utils.rs
github-actions / clippy
the trait bound `<<<T as frame_system::Config>::Block as sp_runtime::traits::Block>::Header as sp_runtime::traits::Header>::Number: frame_support::traits::IsType<u32>` is not satisfied
error[E0277]: the trait bound `<<<T as frame_system::Config>::Block as sp_runtime::traits::Block>::Header as sp_runtime::traits::Header>::Number: frame_support::traits::IsType<u32>` is not satisfied
--> pallets/dapp-staking-v3/src/benchmarking/utils.rs:311:45
|
311 | pub(super) fn max_claim_size_past_period<T: Config>() -> u32 {
| ^^^^^^ the trait `frame_support::traits::IsType<u32>` is not implemented for `<<<T as frame_system::Config>::Block as sp_runtime::traits::Block>::Header as sp_runtime::traits::Header>::Number`
|
note: required by a bound in `pallet::Config`
--> pallets/dapp-staking-v3/src/lib.rs:111:31
|
109 | pub trait Config: frame_system::Config
| ------ required by a bound in this trait
110 | where
111 | BlockNumberFor<Self>: IsType<BlockNumber>,
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `Config`
help: consider further restricting the associated type
|
311 | pub(super) fn max_claim_size_past_period<T: Config>() -> u32 where <<<T as frame_system::Config>::Block as sp_runtime::traits::Block>::Header as sp_runtime::traits::Header>::Number: frame_support::traits::IsType<u32> {
| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Loading