File tree 3 files changed +17
-2
lines changed 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -793,7 +793,8 @@ impl<'a> FmtVisitor<'a> {
793
793
let header_str = self . format_header ( item_name, ident, vis) ;
794
794
result. push_str ( & header_str) ;
795
795
result. push ( ';' ) ;
796
- return Some ( result) ;
796
+
797
+ Some ( result)
797
798
}
798
799
799
800
fn format_struct_struct ( & self ,
@@ -968,8 +969,8 @@ impl<'a> FmtVisitor<'a> {
968
969
terminator,
969
970
Some ( span. hi) ) ) ;
970
971
result. push_str ( & where_clause_str) ;
971
- result. push_str ( & self . block_indent . to_string ( self . config ) ) ;
972
972
result. push ( '\n' ) ;
973
+ result. push_str ( & self . block_indent . to_string ( self . config ) ) ;
973
974
result. push_str ( opener) ;
974
975
} else {
975
976
result. push ( ' ' ) ;
Original file line number Diff line number Diff line change @@ -135,3 +135,9 @@ struct Foo<T>(TTTTTTTTTTTTTTTTT, // Foo
135
135
TTTTTTTTTTTTTTTTTTT ,
136
136
// Qux (FIXME #572 - doc comment)
137
137
UUUUUUUUUUUUUUUUUUU ) ;
138
+
139
+ mod m {
140
+ struct X < T > where T : Sized {
141
+ a : T ,
142
+ }
143
+ }
Original file line number Diff line number Diff line change @@ -141,3 +141,11 @@ struct Foo<T>(TTTTTTTTTTTTTTTTT, // Foo
141
141
TTTTTTTTTTTTTTTTTTT ,
142
142
// Qux (FIXME #572 - doc comment)
143
143
UUUUUUUUUUUUUUUUUUU ) ;
144
+
145
+ mod m {
146
+ struct X < T >
147
+ where T : Sized
148
+ {
149
+ a : T ,
150
+ }
151
+ }
You can’t perform that action at this time.
0 commit comments