Skip to content

Conversation

@ethanoroshiba
Copy link
Contributor

@ethanoroshiba ethanoroshiba commented Dec 6, 2024

Summary

Boxed large error variant

Background

Large enum variants should be avoided since enums are as large as their largest variant: https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant

Wasn't caught by clippy until running with Rust 1.83.0 in #1857.

Changes

  • Boxed Block variant of SequencerBlockToMount.

Testing

Passing all tests

Changelogs

No updates needed.

Breaking Changes

Overridden code freeze since this is a very small, non breaking change that shouldn't have any bearing since our previous audit.

Related Issues

closes #1859

@ethanoroshiba ethanoroshiba added sequencer-relayer pertaining to the astria-sequencer-relayer crate code-quality testing override-freeze labels Dec 6, 2024
@ethanoroshiba ethanoroshiba marked this pull request as ready for review December 6, 2024 21:08
@ethanoroshiba ethanoroshiba requested a review from a team as a code owner December 6, 2024 21:08
@ethanoroshiba ethanoroshiba requested a review from noot December 6, 2024 21:08
@SuperFluffy
Copy link
Contributor

I'd honestly be fine with just slapping an expect on this. We are in a test enviroinment after all.

@ethanoroshiba
Copy link
Contributor Author

Closing since this is in a test environment only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-quality override-freeze sequencer-relayer pertaining to the astria-sequencer-relayer crate testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(sequencer-relayer): avoid large enum variant

3 participants