@@ -8,7 +8,7 @@ use serde::{Deserialize, Serialize};
8
8
use std:: path:: PathBuf ;
9
9
10
10
/// rustdoc format-version.
11
- pub const FORMAT_VERSION : u32 = 25 ;
11
+ pub const FORMAT_VERSION : u32 = 26 ;
12
12
13
13
/// A `Crate` is the root of the emitted JSON blob. It contains all type/documentation information
14
14
/// about the language items in the local crate, as well as info about external items to allow
@@ -83,7 +83,6 @@ pub struct Item {
83
83
/// Stringified versions of the attributes on this item (e.g. `"#[inline]"`)
84
84
pub attrs : Vec < String > ,
85
85
pub deprecation : Option < Deprecation > ,
86
- #[ serde( flatten) ]
87
86
pub inner : ItemEnum ,
88
87
}
89
88
@@ -222,7 +221,7 @@ pub enum ItemKind {
222
221
}
223
222
224
223
#[ derive( Clone , Debug , PartialEq , Eq , Hash , Serialize , Deserialize ) ]
225
- #[ serde( tag = "kind" , content = "inner" , rename_all = "snake_case" ) ]
224
+ #[ serde( rename_all = "snake_case" ) ]
226
225
pub enum ItemEnum {
227
226
Module ( Module ) ,
228
227
ExternCrate {
@@ -543,7 +542,6 @@ pub enum Term {
543
542
544
543
#[ derive( Clone , Debug , PartialEq , Eq , Hash , Serialize , Deserialize ) ]
545
544
#[ serde( rename_all = "snake_case" ) ]
546
- #[ serde( tag = "kind" , content = "inner" ) ]
547
545
pub enum Type {
548
546
/// Structs, enums, and unions
549
547
ResolvedPath ( Path ) ,
0 commit comments