Skip to content

Commit

Permalink
box large enum variant
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanoroshiba committed Dec 6, 2024
1 parent 903e1f3 commit f283bf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl MockSequencerServer {
pub enum SequencerBlockToMount {
GoodAtHeight(u32),
BadAtHeight(u32),
Block(SequencerBlock),
Block(Box<SequencerBlock>),
}

struct SequencerServiceImpl(MockServer);
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion crates/astria-sequencer-relayer/tests/blackbox/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f283bf6

Please sign in to comment.