From f283bf6735a95ebf3da2bef5b4b18fdad57d4f9b Mon Sep 17 00:00:00 2001 From: ethanoroshiba Date: Fri, 6 Dec 2024 14:48:48 -0600 Subject: [PATCH] box large enum variant --- .../tests/blackbox/helpers/mock_sequencer_server.rs | 4 ++-- crates/astria-sequencer-relayer/tests/blackbox/main.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/astria-sequencer-relayer/tests/blackbox/helpers/mock_sequencer_server.rs b/crates/astria-sequencer-relayer/tests/blackbox/helpers/mock_sequencer_server.rs index 33ff34d989..afa93e5842 100644 --- a/crates/astria-sequencer-relayer/tests/blackbox/helpers/mock_sequencer_server.rs +++ b/crates/astria-sequencer-relayer/tests/blackbox/helpers/mock_sequencer_server.rs @@ -99,7 +99,7 @@ impl MockSequencerServer { pub enum SequencerBlockToMount { GoodAtHeight(u32), BadAtHeight(u32), - Block(SequencerBlock), + Block(Box), } struct SequencerServiceImpl(MockServer); @@ -152,7 +152,7 @@ fn prepare_sequencer_block_response( ..Default::default() } .make(), - SequencerBlockToMount::Block(block) => block, + SequencerBlockToMount::Block(block) => *block, }; let mut block = block.into_raw(); diff --git a/crates/astria-sequencer-relayer/tests/blackbox/main.rs b/crates/astria-sequencer-relayer/tests/blackbox/main.rs index 93770c5dce..a9a4b40dc2 100644 --- a/crates/astria-sequencer-relayer/tests/blackbox/main.rs +++ b/crates/astria-sequencer-relayer/tests/blackbox/main.rs @@ -263,7 +263,7 @@ async fn should_filter_rollup() { ..Default::default() } .make(); - let block_to_mount = SequencerBlockToMount::Block(block); + let block_to_mount = SequencerBlockToMount::Block(Box::new(block)); sequencer_relayer.mount_abci_response(1).await; sequencer_relayer