Skip to content

Conversation

jogru0
Copy link

@jogru0 jogru0 commented Apr 21, 2025

Just some minor code cleanups.

@@ -1297,7 +1297,7 @@ fn join_bounds_inner(
// or the single item is of type `Trait`,
// and any of the internal arrays contains more than one item;
let retry_with_force_newline = match context.config.style_edition() {
style_edition @ _ if style_edition <= StyleEdition::Edition2021 => {
Edition2015 | Edition2018 | Edition2021 => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to import StyleEdition::*. Should still fit on one line even if you use the fully qualified variant names.

Suggested change
Edition2015 | Edition2018 | Edition2021 => {
StyleEdition::Edition2015 | StyleEdition::Edition2018 | StyleEdition::Edition2021 => {

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

Successfully merging this pull request may close these issues.

4 participants