Revamp all CI jobs #499
Annotations
7 errors and 57 warnings
equal expressions as operands to `==`:
pallets/payments/src/benchmarking.rs#L117
error: equal expressions as operands to `==`
--> pallets/payments/src/benchmarking.rs:117:25
|
117 | if asset == asset && amount == amount && remark == remark
| ^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#eq_op
|
equal expressions as operands to `==`:
pallets/payments/src/benchmarking.rs#L117
error: equal expressions as operands to `==`
--> pallets/payments/src/benchmarking.rs:117:7
|
117 | if asset == asset && amount == amount && remark == remark
| ^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#eq_op
= note: `#[deny(clippy::eq_op)]` on by default
|
clippy
Clippy had exited with the 101 exit code
|
check
failed to run custom build command for `kreivo-runtime v0.15.0 (/home/runner/work/kreivo/kreivo/runtime/kreivo)`
|
check
The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
|
test
failed to run custom build command for `kreivo-runtime v0.15.0 (/home/runner/work/kreivo/kreivo/runtime/kreivo)`
|
test
The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
|
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
using `map_err` over `inspect_err`:
pallets/payments/src/lib.rs#L151
warning: using `map_err` over `inspect_err`
--> pallets/payments/src/lib.rs:151:12
|
151 | #[pallet::pallet]
| ^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect
= note: `#[warn(clippy::manual_inspect)]` on by default
help: try
|
151 - #[pallet::pallet]
151 + #[pallet::&inspect_err]
|
|
useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`:
pallets/payments/src/lib.rs#L492
warning: useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`
--> pallets/payments/src/lib.rs:492:25
|
492 | pub fn resolve_dispute(
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`:
pallets/payments/src/lib.rs#L492
warning: useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`
--> pallets/payments/src/lib.rs:492:25
|
492 | pub fn resolve_dispute(
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`:
pallets/payments/src/lib.rs#L466
warning: useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`
--> pallets/payments/src/lib.rs:466:25
|
466 | pub fn request_payment(
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`:
pallets/payments/src/lib.rs#L466
warning: useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`
--> pallets/payments/src/lib.rs:466:25
|
466 | pub fn request_payment(
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`:
pallets/payments/src/lib.rs#L427
warning: useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`
--> pallets/payments/src/lib.rs:427:24
|
427 | pub fn dispute_refund(origin: OriginFor<T>, payment_id: T::PaymentId) -> DispatchResultWithPostInfo {
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`:
pallets/payments/src/lib.rs#L427
warning: useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`
--> pallets/payments/src/lib.rs:427:24
|
427 | pub fn dispute_refund(origin: OriginFor<T>, payment_id: T::PaymentId) -> DispatchResultWithPostInfo {
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`:
pallets/payments/src/lib.rs#L396
warning: useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`
--> pallets/payments/src/lib.rs:396:16
|
396 | pub fn cancel(origin: OriginFor<T>, payment_id: T::PaymentId) -> DispatchResultWithPostInfo {
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`:
pallets/payments/src/lib.rs#L396
warning: useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`
--> pallets/payments/src/lib.rs:396:16
|
396 | pub fn cancel(origin: OriginFor<T>, payment_id: T::PaymentId) -> DispatchResultWithPostInfo {
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`:
pallets/payments/src/lib.rs#L358
warning: useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`
--> pallets/payments/src/lib.rs:358:24
|
358 | pub fn accept_and_pay(origin: OriginFor<T>, payment_id: T::PaymentId) -> DispatchResultWithPostInfo {
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`:
pallets/payments/src/lib.rs#L358
warning: useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`
--> pallets/payments/src/lib.rs:358:24
|
358 | pub fn accept_and_pay(origin: OriginFor<T>, payment_id: T::PaymentId) -> DispatchResultWithPostInfo {
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`:
pallets/payments/src/lib.rs#L321
warning: useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`
--> pallets/payments/src/lib.rs:321:24
|
321 | pub fn request_refund(origin: OriginFor<T>, payment_id: T::PaymentId) -> DispatchResultWithPostInfo {
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`:
pallets/payments/src/lib.rs#L321
warning: useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`
--> pallets/payments/src/lib.rs:321:24
|
321 | pub fn request_refund(origin: OriginFor<T>, payment_id: T::PaymentId) -> DispatchResultWithPostInfo {
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`:
pallets/payments/src/lib.rs#L304
warning: useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`
--> pallets/payments/src/lib.rs:304:17
|
304 | pub fn release(origin: OriginFor<T>, payment_id: T::PaymentId) -> DispatchResultWithPostInfo {
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`:
pallets/payments/src/lib.rs#L304
warning: useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`
--> pallets/payments/src/lib.rs:304:17
|
304 | pub fn release(origin: OriginFor<T>, payment_id: T::PaymentId) -> DispatchResultWithPostInfo {
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`:
pallets/payments/src/lib.rs#L267
warning: useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`
--> pallets/payments/src/lib.rs:267:13
|
267 | pub fn pay(
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`:
pallets/payments/src/lib.rs#L267
warning: useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`
--> pallets/payments/src/lib.rs:267:13
|
267 | pub fn pay(
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
|
using `clone` on type `<T as Config>::AssetsBalance` which implements the `Copy` trait:
pallets/payments/src/benchmarking.rs#L241
warning: using `clone` on type `<T as Config>::AssetsBalance` which implements the `Copy` trait
--> pallets/payments/src/benchmarking.rs:241:4
|
241 | amount.clone(),
| ^^^^^^^^^^^^^^ help: try removing the `clone` call: `amount`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
casting integer literal to `u8` is unnecessary:
pallets/payments/src/benchmarking.rs#L103
warning: casting integer literal to `u8` is unnecessary
--> pallets/payments/src/benchmarking.rs:103:35
|
103 | Some(BoundedVec::try_from(vec![1 as u8; q as usize]).unwrap())
| ^^^^^^^ help: try: `1_u8`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `#[warn(clippy::unnecessary_cast)]` on by default
|
using `clone` on type `<T as Config>::AssetsBalance` which implements the `Copy` trait:
pallets/payments/src/benchmarking.rs#L70
warning: using `clone` on type `<T as Config>::AssetsBalance` which implements the `Copy` trait
--> pallets/payments/src/benchmarking.rs:70:3
|
70 | amount.clone(),
| ^^^^^^^^^^^^^^ help: try dereferencing it: `*amount`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
= note: `#[warn(clippy::clone_on_copy)]` on by default
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/payments/src/benchmarking.rs#L64
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/payments/src/benchmarking.rs:64:52
|
64 | create_and_mint_asset::<T>(&sender, &beneficiary, &asset)?;
| ^^^^^^ help: change this to: `asset`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
very complex type used. Consider factoring parts into `type` definitions:
pallets/payments/src/benchmarking.rs#L53
warning: very complex type used. Consider factoring parts into `type` definitions
--> pallets/payments/src/benchmarking.rs:53:6
|
53 | ) -> Result<
| ______^
54 | | (
55 | | T::PaymentId,
56 | | T::AccountId,
... |
61 | | BenchmarkError,
62 | | > {
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
= note: `#[warn(clippy::type_complexity)]` on by default
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/payments/src/benchmarking.rs#L44
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/payments/src/benchmarking.rs:44:38
|
44 | T::Assets::mint_into(asset.clone(), &beneficiary, <BalanceOf<T>>::from(10000000u32))?;
| ^^^^^^^^^^^^ help: change this to: `beneficiary`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/payments/src/benchmarking.rs#L43
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/payments/src/benchmarking.rs:43:38
|
43 | T::Assets::mint_into(asset.clone(), &sender, <BalanceOf<T>>::from(10000000u32))?;
| ^^^^^^^ help: change this to: `sender`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
|
this import is redundant:
pallets/payments/src/benchmarking.rs#L15
warning: this import is redundant
--> pallets/payments/src/benchmarking.rs:15:1
|
15 | use log;
| ^^^^^^^^ help: remove it entirely
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
= note: `#[warn(clippy::single_component_path_imports)]` on by default
|
unexpected `cfg` condition value: `fast-runtime`:
/home/runner/.cargo/git/checkouts/polkadot-sdk-3d4658ffc5e737d7/d13cf29/polkadot/runtime/common/src/lib.rs#L272
warning: unexpected `cfg` condition value: `fast-runtime`
--> runtime/runtime-constants/src/lib.rs:60:51
|
60 | pub const EPOCH_DURATION_IN_SLOTS: BlockNumber = prod_or_fast!(HOURS, MINUTES);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `default`, `paseo`, and `std`
= note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate
= help: try referring to `prod_or_fast` crate for guidance on how handle this unexpected cfg
= help: the macro `prod_or_fast` may come from an old version of the `polkadot_runtime_common` crate, try updating your dependency with `cargo update -p polkadot_runtime_common`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: `#[warn(unexpected_cfgs)]` on by default
= note: this warning originates in the macro `prod_or_fast` (in Nightly builds, run with -Z macro-backtrace for more info)
|
using `map_err` over `inspect_err`:
pallets/communities/src/lib.rs#L155
warning: using `map_err` over `inspect_err`
--> pallets/communities/src/lib.rs:155:12
|
155 | #[pallet::pallet]
| ^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect
= note: `#[warn(clippy::manual_inspect)]` on by default
help: try
|
155 - #[pallet::pallet]
155 + #[pallet::&inspect_err]
|
|
useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`:
pallets/communities/src/lib.rs#L569
warning: useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`
--> pallets/communities/src/lib.rs:569:29
|
569 | pub fn dispatch_as_account(origin: OriginFor<T>, call: Box<RuntimeCallFor<T>>) -> DispatchResultWithPostInfo {
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`:
pallets/communities/src/lib.rs#L569
warning: useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`
--> pallets/communities/src/lib.rs:569:29
|
569 | pub fn dispatch_as_account(origin: OriginFor<T>, call: Box<RuntimeCallFor<T>>) -> DispatchResultWithPostInfo {
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
|
very complex type used. Consider factoring parts into `type` definitions:
pallets/communities/src/benchmarking.rs#L98
warning: very complex type used. Consider factoring parts into `type` definitions
--> pallets/communities/src/benchmarking.rs:98:6
|
98 | ) -> Result<Vec<(AccountIdOf<T>, MembershipIdOf<T>)>, BenchmarkError>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
= note: `#[warn(clippy::type_complexity)]` on by default
|
bound is defined in more than one place:
pallets/communities/src/benchmarking.rs#L136
warning: bound is defined in more than one place
--> pallets/communities/src/benchmarking.rs:136:1
|
136 | / #[benchmarks(
137 | | where
138 | | T: frame_system::Config + crate::Config,
| | ^
139 | | OriginFor<T>: From<Origin<T>> + From<frame_system::Origin<T>>,
... |
144 | | BlockNumberFor<T>: From<u32>
145 | | )]
| |__^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations
= note: `#[warn(clippy::multiple_bound_locations)]` on by default
= note: this warning originates in the attribute macro `benchmarks` (in Nightly builds, run with -Z macro-backtrace for more info)
|
duplicated attribute:
pallets/communities/src/benchmarking.rs#L2
warning: duplicated attribute
--> pallets/communities/src/benchmarking.rs:2:8
|
2 | #![cfg(feature = "runtime-benchmarks")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: first defined here
--> pallets/communities/src/lib.rs:116:7
|
116 | #[cfg(feature = "runtime-benchmarks")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: remove this attribute
--> pallets/communities/src/benchmarking.rs:2:8
|
2 | #![cfg(feature = "runtime-benchmarks")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#duplicated_attributes
= note: `#[warn(clippy::duplicated_attributes)]` on by default
|
clippy
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
check:
runtime/runtime-constants/src/lib.rs#L60
unexpected `cfg` condition value: `fast-runtime`
|
check
`runtime-constants` (lib) generated 1 warning
|
check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test:
runtime/runtime-constants/src/lib.rs#L60
unexpected `cfg` condition value: `fast-runtime`
|
test
`runtime-constants` (lib) generated 1 warning
|
test
`runtime-constants` (lib test) generated 1 warning (1 duplicate)
|