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 @@ -322,6 +322,7 @@ impl<'a> FmtVisitor<'a> {
322
322
323
323
let remaining = snippet[ status. line_start ..subslice. len ( ) + offset] . trim ( ) ;
324
324
if !remaining. is_empty ( ) {
325
+ self . push_str ( & self . block_indent . to_string ( self . config ) ) ;
325
326
self . push_str ( remaining) ;
326
327
status. line_start = subslice. len ( ) + offset;
327
328
}
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