From 886bb778d4940f444e26e770c87d7a4bc62e039d Mon Sep 17 00:00:00 2001 From: rob-maron <132852777+rob-maron@users.noreply.github.com> Date: Mon, 2 Dec 2024 12:22:10 -0500 Subject: [PATCH] Fix clippy (#2345) clippy --- sequencer/src/options.rs | 3 ++- types/src/v0/impls/block/namespace_payload/iter.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sequencer/src/options.rs b/sequencer/src/options.rs index 88544ec0f6..9882283d3f 100644 --- a/sequencer/src/options.rs +++ b/sequencer/src/options.rs @@ -1,3 +1,5 @@ +#![allow(clippy::needless_lifetimes)] + use core::fmt::Display; use jf_signature::{bls_over_bn254, schnorr}; use sequencer_utils::logging; @@ -40,7 +42,6 @@ use crate::{api, context::ProposalFetcherConfig, persistence}; // BEST NOT TO ADD REQUIRED ARGUMENTS TO THIS TYPE, since the required arguments will be required // even if the user is only asking for help on a module. Try to give every argument on this type a // default value, even if it is a bit arbitrary. - #[derive(Parser, Clone, Derivative)] #[derivative(Debug(bound = ""))] pub struct Options { diff --git a/types/src/v0/impls/block/namespace_payload/iter.rs b/types/src/v0/impls/block/namespace_payload/iter.rs index 3f460e09ab..f681826ab6 100644 --- a/types/src/v0/impls/block/namespace_payload/iter.rs +++ b/types/src/v0/impls/block/namespace_payload/iter.rs @@ -36,7 +36,7 @@ impl<'a> Iter<'a> { } } -impl<'a> Iterator for Iter<'a> { +impl Iterator for Iter<'_> { type Item = Index; fn next(&mut self) -> Option {