Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(sequencer): simplify boolean expressions in transaction container #1595

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

ethanoroshiba
Copy link
Contributor

Summary

Simplified logical statements in transaction_priority_comparisons_should_be_consistent_nonce_diff().

Background

Previously there was an allow for clippy::nonminimal_bool. The reasoning behind it was to match documented behavior. This change is meant to explicitly state the expected behavior while still simplifying the boolean expressions. This is in response to this comment: #1561 (comment)

Changes

  • Simplified boolean expressions and moved the non-simplified versions to the comments where applicable to provide context on the documented behavior.

Testing

Passing all tests

Related Issues

closes #1583

@github-actions github-actions bot added the sequencer pertaining to the astria-sequencer crate label Sep 30, 2024
@ethanoroshiba ethanoroshiba changed the title chore(sequencer): rework transaction container test to avoid clippy allow chore(sequencer): simplify boolean expressions in transaction container Sep 30, 2024
@ethanoroshiba ethanoroshiba marked this pull request as ready for review October 2, 2024 16:08
@ethanoroshiba ethanoroshiba requested a review from a team as a code owner October 2, 2024 16:08
@ethanoroshiba ethanoroshiba added this pull request to the merge queue Oct 2, 2024
Merged via the queue into main with commit 6fdf4ea Oct 2, 2024
43 checks passed
@ethanoroshiba ethanoroshiba deleted the ENG-875/nonminimal_bool branch October 2, 2024 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sequencer pertaining to the astria-sequencer crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chore: rework transaction_priority_comparisons_should_be_consistent_nonce_diff() to avoid clippy allow
2 participants