mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 21:38:31 +00:00
Fix Rust 1.83 Clippy lints (#6629)
* Fix Rust 1.83 Clippy lints * Cargo fmt
This commit is contained in:
@@ -113,7 +113,7 @@ pub trait SubsetItem {
|
||||
fn root(&self) -> Result<Hash256, Error>;
|
||||
}
|
||||
|
||||
impl<'a, E: EthSpec> SubsetItem for AttestationRef<'a, E> {
|
||||
impl<E: EthSpec> SubsetItem for AttestationRef<'_, E> {
|
||||
type Item = BitList<E::MaxValidatorsPerSlot>;
|
||||
fn is_subset(&self, other: &Self::Item) -> bool {
|
||||
match self {
|
||||
@@ -159,7 +159,7 @@ impl<'a, E: EthSpec> SubsetItem for AttestationRef<'a, E> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, E: EthSpec> SubsetItem for &'a SyncCommitteeContribution<E> {
|
||||
impl<E: EthSpec> SubsetItem for &SyncCommitteeContribution<E> {
|
||||
type Item = BitVector<E::SyncSubcommitteeSize>;
|
||||
fn is_subset(&self, other: &Self::Item) -> bool {
|
||||
self.aggregation_bits.is_subset(other)
|
||||
|
||||
Reference in New Issue
Block a user