Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/items.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2569,7 +2569,7 @@ fn rewrite_fn_base(
.last()
.map_or(false, |last_line| last_line.contains("//"));

if context.config.style_edition() >= StyleEdition::Edition2027 {
if context.config.style_edition() >= StyleEdition::Edition2024 {
if closing_paren_overflow_max_width {
result.push(')');
result.push_str(&indent.to_string_with_newline(context.config));
Expand Down
21 changes: 0 additions & 21 deletions tests/source/long-fn-1/style_edition_2027.rs

This file was deleted.

8 changes: 0 additions & 8 deletions tests/target/issue-3278/style_edition_2024.rs

This file was deleted.

8 changes: 0 additions & 8 deletions tests/target/issue-3278/style_edition_2027.rs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// rustfmt-style_edition: 2027
// rustfmt-style_edition: 2024

pub fn parse_conditional<'a, I: 'a>()
-> impl Parser<Input = I, Output = Expr, PartialState = ()> + 'a
Expand Down
29 changes: 0 additions & 29 deletions tests/target/long-fn-1/style_edition_2024.rs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// rustfmt-style_edition: 2027
// rustfmt-style_edition: 2024
// Tests that a function which is almost short enough, but not quite, gets
// formatted correctly.

Expand Down
Loading