@@ -1256,6 +1256,7 @@ fn render_assoc_items_inner(
1256
1256
let Some ( v) = cache. impls . get ( & it) else { return } ;
1257
1257
let ( non_trait, traits) : ( Vec < _ > , _ ) = v. iter ( ) . partition ( |i| i. inner_impl ( ) . trait_ . is_none ( ) ) ;
1258
1258
if !non_trait. is_empty ( ) {
1259
+ let mut close_tags = String :: new ( ) ;
1259
1260
let mut tmp_buf = Buffer :: html ( ) ;
1260
1261
let ( render_mode, id, class_html) = match what {
1261
1262
AssocItemRender :: All => {
@@ -1266,6 +1267,8 @@ fn render_assoc_items_inner(
1266
1267
let id =
1267
1268
cx. derive_id ( small_url_encode ( format ! ( "deref-methods-{:#}" , type_. print( cx) ) ) ) ;
1268
1269
let derived_id = cx. derive_id ( & id) ;
1270
+ tmp_buf. write_str ( "<details class=\" toggle implementors-toggle\" open><summary>" ) ;
1271
+ close_tags. insert_str ( 0 , "</details>" ) ;
1269
1272
write_impl_section_heading (
1270
1273
& mut tmp_buf,
1271
1274
& format ! (
@@ -1275,6 +1278,7 @@ fn render_assoc_items_inner(
1275
1278
) ,
1276
1279
& id,
1277
1280
) ;
1281
+ tmp_buf. write_str ( "</summary>" ) ;
1278
1282
if let Some ( def_id) = type_. def_id ( cx. cache ( ) ) {
1279
1283
cx. deref_id_map . insert ( def_id, id) ;
1280
1284
}
@@ -1308,6 +1312,7 @@ fn render_assoc_items_inner(
1308
1312
impls_buf. into_inner( )
1309
1313
)
1310
1314
. unwrap ( ) ;
1315
+ w. write_str ( & close_tags) . unwrap ( ) ;
1311
1316
}
1312
1317
}
1313
1318
0 commit comments