We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e425a19 commit 167a4ddCopy full SHA for 167a4dd
src/types.rs
@@ -328,9 +328,9 @@ where
328
let comment = if comment.starts_with("//") {
329
format!(
330
"{}{}{}",
331
- &shape.indent.to_string_with_newline(context.config),
+ &list_shape.indent.to_string_with_newline(context.config),
332
comment,
333
- &shape.indent.to_string_with_newline(context.config)
+ &shape.block().indent.to_string_with_newline(context.config)
334
)
335
} else {
336
comment.to_string()
tests/target/issue-3508.rs
@@ -1,8 +1,8 @@
1
fn foo<F>(foo2: F)
2
where
3
F: Fn(
4
- // this comment is deleted
5
- ),
+ // this comment is deleted
+ ),
6
{
7
}
8
@@ -14,7 +14,7 @@ where
14
15
fn bar(
16
bar2: impl Fn(
17
18
),
19
) {
20
0 commit comments