Skip to content

Commit

Permalink
Show BestFitting mode if it isn't FirstLine (#5452)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Jun 30, 2023
1 parent f9129e4 commit f0ec9ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff_formatter/src/format_element/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ impl Format<IrFormatContext<'_>> for &[FormatElement] {
FormatElement::Line(LineMode::Hard),
])?;

if *mode != BestFittingMode::AllLines {
if *mode != BestFittingMode::FirstLine {
write!(
f,
[
Expand Down

0 comments on commit f0ec9ec

Please sign in to comment.