mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
Use correct fn args indent for Visual
This commit is contained in:
parent
05b6aaa130
commit
54f8bcb5a2
@ -732,7 +732,11 @@ fn rewrite_bare_fn(
|
||||
|
||||
result.push_str("fn");
|
||||
|
||||
let func_ty_shape = shape.offset_left(result.len())?;
|
||||
let func_ty_shape = if context.use_block_indent() {
|
||||
shape.offset_left(result.len())?
|
||||
} else {
|
||||
shape.visual_indent(result.len()).sub_width(result.len())?
|
||||
};
|
||||
|
||||
let rewrite = format_function_type(
|
||||
bare_fn.decl.inputs.iter(),
|
||||
|
Loading…
Reference in New Issue
Block a user