File tree 3 files changed +39
-0
lines changed
3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -353,6 +353,7 @@ impl<'a> FmtVisitor<'a> {
353
353
354
354
let remaining = snippet[ status. line_start ..subslice. len ( ) + offset] . trim ( ) ;
355
355
if !remaining. is_empty ( ) {
356
+ self . push_str ( & self . block_indent . to_string ( self . config ) ) ;
356
357
self . push_str ( remaining) ;
357
358
status. line_start = subslice. len ( ) + offset;
358
359
}
Original file line number Diff line number Diff line change
1
+ impl Struct {
2
+ /// Documentation for `foo`
3
+ #[ rustfmt:: skip] // comment on why use a skip here
4
+ pub fn foo ( & self ) { }
5
+ }
6
+
7
+ impl Struct {
8
+ /// Documentation for `foo`
9
+ #[ rustfmt:: skip] // comment on why use a skip here
10
+ pub fn foo ( & self ) { }
11
+ }
12
+
13
+ /// Documentation for `Struct`
14
+ #[ rustfmt:: skip] // comment
15
+ impl Struct {
16
+ /// Documentation for `foo`
17
+ #[ rustfmt:: skip] // comment on why use a skip here
18
+ pub fn foo ( & self ) { }
19
+ }
Original file line number Diff line number Diff line change
1
+ impl Struct {
2
+ /// Documentation for `foo`
3
+ #[ rustfmt:: skip] // comment on why use a skip here
4
+ pub fn foo ( & self ) { }
5
+ }
6
+
7
+ impl Struct {
8
+ /// Documentation for `foo`
9
+ #[ rustfmt:: skip] // comment on why use a skip here
10
+ pub fn foo ( & self ) { }
11
+ }
12
+
13
+ /// Documentation for `Struct`
14
+ #[ rustfmt:: skip] // comment
15
+ impl Struct {
16
+ /// Documentation for `foo`
17
+ #[ rustfmt:: skip] // comment on why use a skip here
18
+ pub fn foo ( & self ) { }
19
+ }
You can’t perform that action at this time.
0 commit comments