refactor: migrate integration tests to paseo #267
Triggered via pull request
July 27, 2024 15:07
evilrobot-01
opened
#139
Status
Success
Total duration
11s
Artifacts
–
lint-pr.yml
on: pull_request_target
Validate PR title for conventional commit compliance
3s
Annotations
1 error and 7 warnings
not all trait items implemented, missing: `SlotDuration`:
runtime/testnet/src/lib.rs#L438
error[E0046]: not all trait items implemented, missing: `SlotDuration`
--> runtime/testnet/src/lib.rs:438:1
|
438 | impl pallet_aura::Config for Runtime {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `SlotDuration` in implementation
|
= help: implement the missing item: `type SlotDuration = /* Type */;`
|
the borrowed expression implements the required traits:
scripts/fund-dev-accounts/./main.rs#L122
warning: the borrowed expression implements the required traits
--> scripts/fund-dev-accounts/./main.rs:122:47
|
122 | let query = pop::storage().system().account(&account.public_key().0.into());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `account.public_key().0.into()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
|
used a field initializer for a tuple struct:
scripts/fund-dev-accounts/./main.rs#L54
warning: used a field initializer for a tuple struct
--> scripts/fund-dev-accounts/./main.rs:54:36
|
54 | let assets = VersionedAssets::V3(Assets {
| __________________________________________^
55 | | 0: vec![Asset {
56 | | id: Concrete(Location { parents: 0, interior: Junctions::Here }),
57 | | fun: amount,
58 | | }],
59 | | });
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#init_numbered_fields
= note: `#[warn(clippy::init_numbered_fields)]` on by default
help: try
|
54 ~ let assets = VersionedAssets::V3(Assets(vec![Asset {
55 ~ id: Concrete(Location { parents: 0, interior: Junctions::Here }),
56 ~ fun: amount,
57 ~ }]));
|
|
this match could be replaced by its body itself:
runtime/devnet/src/extensions.rs#L186
warning: this match could be replaced by its body itself
--> runtime/devnet/src/extensions.rs:186:15
|
186 | let result = match key {
| __________________^
187 | | _ => Vec::<u8>::default(),
188 | | }
| |_____^ help: consider using the match body instead: `Vec::<u8>::default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_single_binding
= note: `#[warn(clippy::match_single_binding)]` on by default
|
use of deprecated struct `pallet_transaction_payment::CurrencyAdapter`: Please use the fungible trait and FungibleAdapter. This struct will be removed some time after March 2024.:
runtime/devnet/src/lib.rs#L337
warning: use of deprecated struct `pallet_transaction_payment::CurrencyAdapter`: Please use the fungible trait and FungibleAdapter. This struct will be removed some time after March 2024.
--> runtime/devnet/src/lib.rs:337:57
|
337 | type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, ()>;
| ^^^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
|
bound is defined in more than one place:
runtime/devnet/src/extensions.rs#L33
warning: bound is defined in more than one place
--> runtime/devnet/src/extensions.rs:33:10
|
33 | fn call<E: Ext>(&mut self, env: Environment<E, InitState>) -> Result<RetVal, DispatchError>
| ^
34 | where
35 | E: Ext<T = T>,
| ^
|
= 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
|
use of deprecated struct `pallet_transaction_payment::CurrencyAdapter`: Please use the fungible trait and FungibleAdapter. This struct will be removed some time after March 2024.:
runtime/testnet/src/lib.rs#L336
warning: use of deprecated struct `pallet_transaction_payment::CurrencyAdapter`: Please use the fungible trait and FungibleAdapter. This struct will be removed some time after March 2024.
--> runtime/testnet/src/lib.rs:336:57
|
336 | type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, ()>;
| ^^^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
|
bound is defined in more than one place:
runtime/testnet/src/extensions.rs#L33
warning: bound is defined in more than one place
--> runtime/testnet/src/extensions.rs:33:10
|
33 | fn call<E: Ext>(&mut self, env: Environment<E, InitState>) -> Result<RetVal, DispatchError>
| ^
34 | where
35 | E: Ext<T = T>,
| ^
|
= 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
|