mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
Use correct budget for function call args
This commit is contained in:
+6
-1
@@ -2558,7 +2558,12 @@ fn shape_from_fn_call_style(
|
||||
offset: usize,
|
||||
) -> Option<Shape> {
|
||||
if context.use_block_indent() {
|
||||
Some(shape.block().block_indent(context.config.tab_spaces()))
|
||||
// 1 = ","
|
||||
shape
|
||||
.block()
|
||||
.block_indent(context.config.tab_spaces())
|
||||
.with_max_width(context.config)
|
||||
.sub_width(1)
|
||||
} else {
|
||||
shape.visual_indent(offset).sub_width(overhead)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user