File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ impl<'a> fmt::Display for WhereClause<'a> {
165
165
if f. alternate ( ) {
166
166
clause. push_str ( " where " ) ;
167
167
} else {
168
- clause. push_str ( " <span class='where'>where " ) ;
168
+ clause. push_str ( " <span class='where fmt-newline '>where " ) ;
169
169
}
170
170
for ( i, pred) in gens. where_predicates . iter ( ) . enumerate ( ) {
171
171
if i > 0 {
@@ -208,10 +208,9 @@ impl<'a> fmt::Display for WhereClause<'a> {
208
208
clause. push_str ( "</span>" ) ;
209
209
let plain = format ! ( "{:#}" , self ) ;
210
210
if plain. len ( ) + pad > 80 {
211
- //break it onto its own line regardless, but make sure method impls and trait
212
- //blocks keep their fixed padding (2 and 9, respectively)
211
+ // break it onto its own line regardless, but make sure method impls and trait
212
+ // blocks keep their fixed padding (2 and 9, respectively)
213
213
let padding = if pad > 10 {
214
- clause = clause. replace ( "class='where'" , "class='where fmt-newline'" ) ;
215
214
repeat ( " " ) . take ( 8 ) . collect :: < String > ( )
216
215
} else {
217
216
repeat ( " " ) . take ( pad + 6 ) . collect :: < String > ( )
You can’t perform that action at this time.
0 commit comments