From cd8bb50aea35f73fa4be62857dfed88f772cd07e Mon Sep 17 00:00:00 2001 From: Kevin Stenerson <2653498+kestred@users.noreply.github.com> Date: Wed, 7 Nov 2018 01:49:53 -0700 Subject: Trim the indentation on macros which heuristically appear to use block-style indentation (#3178) --- src/comment.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/comment.rs') diff --git a/src/comment.rs b/src/comment.rs index db5102a3755..4ba95bda053 100644 --- a/src/comment.rs +++ b/src/comment.rs @@ -332,7 +332,7 @@ fn identify_comment( let (first_group, rest) = orig.split_at(first_group_ending); let rewritten_first_group = if !config.normalize_comments() && has_bare_lines && style.is_block_comment() { - trim_left_preserve_layout(first_group, &shape.indent, config)? + trim_left_preserve_layout(first_group, shape.indent, config)? } else if !config.normalize_comments() && !config.wrap_comments() && !config.format_doc_comments() -- cgit 1.4.1-3-g733a5