mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 19:51:02 +00:00
Clippyfy (#6341)
* Add clippy config and remove .cargo from gitignore * first fixes * Clippyfied * Add clippy CI job * comment out rusty-cachier * minor * fix ci * remove DAG from check-dependent-project * add DAG to clippy Co-authored-by: alvicsam <alvicsam@gmail.com>
This commit is contained in:
@@ -513,7 +513,7 @@ impl<T: Config> Pallet<T> {
|
||||
METRICS.on_candidates_sanitized(backed_candidates.len() as u64);
|
||||
|
||||
// Process backed candidates according to scheduled cores.
|
||||
let parent_storage_root = parent_header.state_root().clone();
|
||||
let parent_storage_root = *parent_header.state_root();
|
||||
let inclusion::ProcessedCandidates::<<T::Header as HeaderT>::Hash> {
|
||||
core_indices: occupied,
|
||||
candidate_receipt_with_backing_validator_indices,
|
||||
@@ -711,7 +711,7 @@ impl<T: Config> Pallet<T> {
|
||||
let scheduled = <scheduler::Pallet<T>>::scheduled();
|
||||
|
||||
let relay_parent_number = now - One::one();
|
||||
let parent_storage_root = parent_header.state_root().clone();
|
||||
let parent_storage_root = *parent_header.state_root();
|
||||
|
||||
let check_ctx = CandidateCheckContext::<T>::new(now, relay_parent_number);
|
||||
let backed_candidates = sanitize_backed_candidates::<T, _>(
|
||||
@@ -1201,7 +1201,7 @@ fn compute_entropy<T: Config>(parent_hash: T::Hash) -> [u8; 32] {
|
||||
// known 2 epochs ago. it is marginally better than using the parent block
|
||||
// hash since it's harder to influence the VRF output than the block hash.
|
||||
let vrf_random = ParentBlockRandomness::<T>::random(&CANDIDATE_SEED_SUBJECT[..]).0;
|
||||
let mut entropy: [u8; 32] = CANDIDATE_SEED_SUBJECT.clone();
|
||||
let mut entropy: [u8; 32] = CANDIDATE_SEED_SUBJECT;
|
||||
if let Some(vrf_random) = vrf_random {
|
||||
entropy.as_mut().copy_from_slice(vrf_random.as_ref());
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user