Skip to content

Commit

Permalink
Use correct fn args indent for Visual
Browse files Browse the repository at this point in the history
  • Loading branch information
YaLTeR committed Aug 31, 2018
1 parent 05b6aaa commit 54f8bcb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/types.rs
Expand Up @@ -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(),
Expand Down

0 comments on commit 54f8bcb

Please sign in to comment.