Skip to content

Update lib.rs in provider-randomness pallet (#327) #2527

Update lib.rs in provider-randomness pallet (#327)

Update lib.rs in provider-randomness pallet (#327) #2527

Triggered via push January 16, 2025 14:35
Status Success
Total duration 2m 21s
Artifacts

lint.yml

on: push
Check format with rustfmt
26s
Check format with rustfmt
Check lint with clippy
2m 8s
Check lint with clippy
Check format with biome
17s
Check format with biome
Check lint with biome
14s
Check lint with biome
Typecheck with tsc
16s
Typecheck with tsc
Fit to window
Zoom out
Zoom in

Annotations

15 warnings
Check lint with biome
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Typecheck with tsc
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Check format with biome
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Check format with rustfmt
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Check lint with clippy
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Check lint with clippy: pallets/randomness/src/benchmarking.rs#L6
bound is defined in more than one place
Check lint with clippy: pallets/randomness/src/lib.rs#L198
using `map_err` over `inspect_err`
Check lint with clippy: pallets/bucket-nfts/src/lib.rs#L56
using `map_err` over `inspect_err`
Check lint with clippy: pallets/providers/src/lib.rs#L1483
using `map_err` over `inspect_err`
Check lint with clippy: pallets/proofs-dealer/src/lib.rs#L735
using `map_err` over `inspect_err`
Check lint with clippy: pallets/provider-randomness/src/lib.rs#L576
useless conversion to the same type: `std::collections::btree_set::Difference<'_, <<T as pallet_proofs_dealer::Config>::ProvidersPallet as shp_traits::ReadChallengeableProvidersInterface>::ProviderId>`
Check lint with clippy: pallets/provider-randomness/src/lib.rs#L626
called `expect` on `providers_to_mark` after checking its variant with `is_some`
Check lint with clippy: pallets/provider-randomness/src/lib.rs#L559
using `map_err` over `inspect_err`
Check lint with clippy: pallets/payment-streams/src/lib.rs#L413
using `map_err` over `inspect_err`
Check lint with clippy: pallets/file-system/src/benchmarking.rs#L682
using `clone` on type `<T as Config>::Hash` which implements the `Copy` trait