@@ -2416,14 +2416,11 @@ enum ItemSection {
2416
2416
PrimitiveTypes ,
2417
2417
Modules ,
2418
2418
Macros ,
2419
- Structs ,
2420
- Enums ,
2419
+ Types ,
2421
2420
Constants ,
2422
2421
Statics ,
2423
2422
Traits ,
2424
2423
Functions ,
2425
- TypeDefinitions ,
2426
- Unions ,
2427
2424
Implementations ,
2428
2425
TypeMethods ,
2429
2426
Methods ,
@@ -2448,14 +2445,11 @@ impl ItemSection {
2448
2445
PrimitiveTypes ,
2449
2446
Modules ,
2450
2447
Macros ,
2451
- Structs ,
2452
- Enums ,
2448
+ Types ,
2453
2449
Constants ,
2454
2450
Statics ,
2455
2451
Traits ,
2456
2452
Functions ,
2457
- TypeDefinitions ,
2458
- Unions ,
2459
2453
Implementations ,
2460
2454
TypeMethods ,
2461
2455
Methods ,
@@ -2476,11 +2470,8 @@ impl ItemSection {
2476
2470
match self {
2477
2471
Self :: Reexports => "reexports" ,
2478
2472
Self :: Modules => "modules" ,
2479
- Self :: Structs => "structs" ,
2480
- Self :: Unions => "unions" ,
2481
- Self :: Enums => "enums" ,
2473
+ Self :: Types => "types" ,
2482
2474
Self :: Functions => "functions" ,
2483
- Self :: TypeDefinitions => "types" ,
2484
2475
Self :: Statics => "statics" ,
2485
2476
Self :: Constants => "constants" ,
2486
2477
Self :: Traits => "traits" ,
@@ -2506,11 +2497,8 @@ impl ItemSection {
2506
2497
match self {
2507
2498
Self :: Reexports => "Re-exports" ,
2508
2499
Self :: Modules => "Modules" ,
2509
- Self :: Structs => "Structs" ,
2510
- Self :: Unions => "Unions" ,
2511
- Self :: Enums => "Enums" ,
2500
+ Self :: Types => "Types" ,
2512
2501
Self :: Functions => "Functions" ,
2513
- Self :: TypeDefinitions => "Type Definitions" ,
2514
2502
Self :: Statics => "Statics" ,
2515
2503
Self :: Constants => "Constants" ,
2516
2504
Self :: Traits => "Traits" ,
@@ -2536,12 +2524,11 @@ impl ItemSection {
2536
2524
fn item_ty_to_section ( ty : ItemType ) -> ItemSection {
2537
2525
match ty {
2538
2526
ItemType :: ExternCrate | ItemType :: Import => ItemSection :: Reexports ,
2527
+ ItemType :: Struct | ItemType :: Enum | ItemType :: Union | ItemType :: Typedef => {
2528
+ ItemSection :: Types
2529
+ }
2539
2530
ItemType :: Module => ItemSection :: Modules ,
2540
- ItemType :: Struct => ItemSection :: Structs ,
2541
- ItemType :: Union => ItemSection :: Unions ,
2542
- ItemType :: Enum => ItemSection :: Enums ,
2543
2531
ItemType :: Function => ItemSection :: Functions ,
2544
- ItemType :: Typedef => ItemSection :: TypeDefinitions ,
2545
2532
ItemType :: Static => ItemSection :: Statics ,
2546
2533
ItemType :: Constant => ItemSection :: Constants ,
2547
2534
ItemType :: Trait => ItemSection :: Traits ,
0 commit comments