feat: [Pallet Pass] Configuration extensions #4
lint-pr.yml
on: pull_request_target
Validate PR title for conventional commit compliance
2s
Annotations
5 warnings
using `map_err` over `inspect_err`:
pallets/referenda-tracks/src/lib.rs#L93
warning: using `map_err` over `inspect_err`
--> pallets/referenda-tracks/src/lib.rs:93:15
|
93 | #[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
|
93 - #[pallet::pallet]
93 + #[pallet::&inspect_err]
|
|
using `map_err` over `inspect_err`:
pallets/pass/src/lib.rs#L83
warning: using `map_err` over `inspect_err`
--> pallets/pass/src/lib.rs:83:15
|
83 | #[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
|
83 - #[pallet::pallet]
83 + #[pallet::&inspect_err]
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/pass/src/lib.rs#L166
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/pass/src/lib.rs:166:42
|
166 | ... .verify_user(&credential)
| ^^^^^^^^^^^ help: change this to: `credential`
|
= 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
|
using `map_err` over `inspect_err`:
pallets/template/src/lib.rs#L34
warning: using `map_err` over `inspect_err`
--> pallets/template/src/lib.rs:34:15
|
34 | #[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
|
34 - #[pallet::pallet]
34 + #[pallet::&inspect_err]
|
|
using `map_err` over `inspect_err`:
pallets/gas-transaction-payment/src/lib.rs#L32
warning: using `map_err` over `inspect_err`
--> pallets/gas-transaction-payment/src/lib.rs:32:15
|
32 | #[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
|
32 - #[pallet::pallet]
32 + #[pallet::&inspect_err]
|
|