File tree Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Expand file tree Collapse file tree 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> {
353353
354354 let remaining = snippet[ status. line_start ..subslice. len ( ) + offset] . trim ( ) ;
355355 if !remaining. is_empty ( ) {
356+ self . push_str ( & self . block_indent . to_string ( self . config ) ) ;
356357 self . push_str ( remaining) ;
357358 status. line_start = subslice. len ( ) + offset;
358359 }
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