Skip to content

Commit 167a4dd

Browse files
committed
fix indent
1 parent e425a19 commit 167a4dd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,9 @@ where
328328
let comment = if comment.starts_with("//") {
329329
format!(
330330
"{}{}{}",
331-
&shape.indent.to_string_with_newline(context.config),
331+
&list_shape.indent.to_string_with_newline(context.config),
332332
comment,
333-
&shape.indent.to_string_with_newline(context.config)
333+
&shape.block().indent.to_string_with_newline(context.config)
334334
)
335335
} else {
336336
comment.to_string()

tests/target/issue-3508.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
fn foo<F>(foo2: F)
22
where
33
F: Fn(
4-
// this comment is deleted
5-
),
4+
// this comment is deleted
5+
),
66
{
77
}
88

@@ -14,7 +14,7 @@ where
1414

1515
fn bar(
1616
bar2: impl Fn(
17-
// this comment is deleted
17+
// this comment is deleted
1818
),
1919
) {
2020
}

0 commit comments

Comments
 (0)