From 7739e3fa58560d2b721afcf831a49ca955a29873 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Sat, 8 Jul 2023 18:16:13 -0600 Subject: [PATCH 1/2] fix some clippy feedback --- src/clock.rs | 8 ++++---- src/phase0/helpers.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/clock.rs b/src/clock.rs index 14d143ce3..aa0e1153f 100644 --- a/src/clock.rs +++ b/src/clock.rs @@ -35,9 +35,9 @@ impl TimeProvider for SystemTimeProvider { } #[derive(Clone)] -pub struct Clock(Arc>); +pub struct Clock(Arc>); -impl Deref for Clock { +impl Deref for Clock { type Target = Inner; fn deref(&self) -> &Self::Target { @@ -87,7 +87,7 @@ pub fn for_goerli() -> Clock { from_system_time(genesis_time, seconds_per_slot, slots_per_epoch) } -impl Clock { +impl Clock { pub fn new( genesis_time: u64, seconds_per_slot: u64, @@ -155,7 +155,7 @@ impl Clock { #[cfg(feature = "async")] use tokio_stream::Stream; #[cfg(feature = "async")] -impl Clock { +impl Clock { pub fn stream_slots(&self) -> impl Stream + '_ { async_stream::stream! { loop { diff --git a/src/phase0/helpers.rs b/src/phase0/helpers.rs index 3ee751938..36864a18f 100644 --- a/src/phase0/helpers.rs +++ b/src/phase0/helpers.rs @@ -117,7 +117,7 @@ pub fn is_valid_indexed_attestation< if !duplicates.is_empty() { return Err(invalid_operation_error( InvalidOperation::IndexedAttestation(InvalidIndexedAttestation::DuplicateIndices( - Vec::from_iter(duplicates.into_iter()), + Vec::from_iter(duplicates), )), )); } From 972c46bde27e7318d82b7f8a04a5583c9f123992 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Sat, 8 Jul 2023 18:21:39 -0600 Subject: [PATCH 2/2] ignore clippy lint until module refacto --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 03edda08d..4a02cb68f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,6 @@ +#![allow(unknown_lints)] +#![allow(hidden_glob_reexports)] + pub mod altair; pub mod bellatrix; pub mod builder;