From 7ef3361dce9ee6e4e6363bacd2e9cf683e3491f0 Mon Sep 17 00:00:00 2001 From: ethanoroshiba Date: Tue, 10 Dec 2024 08:32:08 -0600 Subject: [PATCH] make type alias for complicated type --- crates/astria-sequencer-relayer/src/relayer/mod.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/crates/astria-sequencer-relayer/src/relayer/mod.rs b/crates/astria-sequencer-relayer/src/relayer/mod.rs index 83d00c5a2..6f7afb299 100644 --- a/crates/astria-sequencer-relayer/src/relayer/mod.rs +++ b/crates/astria-sequencer-relayer/src/relayer/mod.rs @@ -83,6 +83,9 @@ use crate::{ IncludeRollup, }; +type ForwardFut<'a> = + Fuse>>>>; + pub(crate) struct Relayer { /// A token to notify relayer that it should shut down. #[expect( @@ -276,20 +279,13 @@ impl Relayer { } #[instrument(skip_all, fields(%height))] - #[expect( - clippy::type_complexity, - reason = "complexity comes from the error type, which is boxed to avoid a large Err \ - variant of the result" - )] fn forward_block_for_submission( &self, height: SequencerHeight, block: SequencerBlock, block_stream: &mut read::BlockStream, submitter: write::BlobSubmitterHandle, - forward: &mut Fuse< - BoxFuture>>>, - >, + forward: &mut ForwardFut, ) -> eyre::Result<()> { assert!( forward.is_terminated(),