mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-06 18:21:45 +00:00
Rust 1.89 compiler lint fix (#7644)
Fix lints for Rust 1.89 beta compiler
This commit is contained in:
@@ -148,12 +148,12 @@ impl<E: EthSpec> ConsensusContext<E> {
|
||||
}
|
||||
|
||||
#[allow(unknown_lints)]
|
||||
#[allow(elided_named_lifetimes)]
|
||||
#[allow(mismatched_lifetime_syntaxes)]
|
||||
pub fn get_indexed_attestation<'a>(
|
||||
&'a mut self,
|
||||
state: &BeaconState<E>,
|
||||
attestation: AttestationRef<'a, E>,
|
||||
) -> Result<IndexedAttestationRef<E>, BlockOperationError<AttestationInvalid>> {
|
||||
) -> Result<IndexedAttestationRef<'a, E>, BlockOperationError<AttestationInvalid>> {
|
||||
let key = attestation.tree_hash_root();
|
||||
match attestation {
|
||||
AttestationRef::Base(attn) => match self.indexed_attestations.entry(key) {
|
||||
|
||||
@@ -56,7 +56,7 @@ impl From<BeaconStateError> for Error {
|
||||
pub fn get_pubkey_from_state<E>(
|
||||
state: &BeaconState<E>,
|
||||
validator_index: usize,
|
||||
) -> Option<Cow<PublicKey>>
|
||||
) -> Option<Cow<'_, PublicKey>>
|
||||
where
|
||||
E: EthSpec,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user