Skip to content

Commit 124f03b

Browse files
authored
Merge pull request #2516 from topecongiro/issue-2510
Make rewrite_call_inner more generic
2 parents fcce0b9 + 6ba7c34 commit 124f03b

File tree

18 files changed

+736
-727
lines changed

18 files changed

+736
-727
lines changed

src/chains.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ pub fn rewrite_chain(expr: &ast::Expr, context: &RewriteContext, shape: Shape) -
257257
Cow::from("")
258258
} else {
259259
// Use new lines.
260-
if context.force_one_line_chain {
260+
if *context.force_one_line_chain.borrow() {
261261
return None;
262262
}
263263
nested_shape.indent.to_string_with_newline(context.config)

0 commit comments

Comments
 (0)