Skip to content

Commit

Permalink
Use right call_chain_layout variable
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Feb 17, 2025
1 parent dade968 commit bab82b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl FormatNodeRule<ExprAttribute> for FormatExprAttribute {
// Allow the `.` on its own line if this is a fluent call chain
// and the value either requires parenthesizing or is a call or subscript expression
// (it's a fluent chain but not the first element).
else if self.call_chain_layout == CallChainLayout::Fluent {
else if call_chain_layout == CallChainLayout::Fluent {
if parenthesize_value || value.is_call_expr() || value.is_subscript_expr() {
soft_line_break().fmt(f)?;
}
Expand Down

0 comments on commit bab82b7

Please sign in to comment.