Revamp all CI jobs #495
clippy
4 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 4 |
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 155 in pallets/communities/src/lib.rs
github-actions / clippy
using `map_err` over `inspect_err`
error: 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: `-D clippy::manual-inspect` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::manual_inspect)]`
help: try
|
155 - #[pallet::pallet]
155 + #[pallet::&inspect_err]
|
Check failure on line 98 in pallets/communities/src/benchmarking.rs
github-actions / clippy
very complex type used. Consider factoring parts into `type` definitions
error: 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: `-D clippy::type-complexity` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::type_complexity)]`
Check failure on line 2 in pallets/communities/src/benchmarking.rs
github-actions / clippy
duplicated attribute
error: 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: `-D clippy::duplicated-attributes` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::duplicated_attributes)]`
Check failure on line 145 in pallets/communities/src/benchmarking.rs
github-actions / clippy
bound is defined in more than one place
error: 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: `-D clippy::multiple-bound-locations` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::multiple_bound_locations)]`
= note: this error originates in the attribute macro `benchmarks` (in Nightly builds, run with -Z macro-backtrace for more info)