about summary refs log tree commit diff
path: root/src/comment.rs
diff options
context:
space:
mode:
authorKevin Stenerson <2653498+kestred@users.noreply.github.com>2018-11-07 01:49:53 -0700
committerSeiichi Uchida <seuchida@gmail.com>2018-11-07 17:49:53 +0900
commitcd8bb50aea35f73fa4be62857dfed88f772cd07e (patch)
tree6d290160cc36277d5f7ea26697812addfbdc1f52 /src/comment.rs
parent16d5f507b63da32783bc920a33e39580d35e492a (diff)
Trim the indentation on macros which heuristically appear to use block-style indentation (#3178)
Diffstat (limited to 'src/comment.rs')
-rw-r--r--src/comment.rs2
1 files changed, 1 insertions, 1 deletions
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()