@@ -8,7 +8,7 @@ use serde::{Deserialize, Serialize};
88use std:: path:: PathBuf ;
99
1010/// rustdoc format-version.
11- pub const FORMAT_VERSION : u32 = 25 ;
11+ pub const FORMAT_VERSION : u32 = 26 ;
1212
1313/// A `Crate` is the root of the emitted JSON blob. It contains all type/documentation information
1414/// about the language items in the local crate, as well as info about external items to allow
@@ -83,7 +83,6 @@ pub struct Item {
8383 /// Stringified versions of the attributes on this item (e.g. `"#[inline]"`)
8484 pub attrs : Vec < String > ,
8585 pub deprecation : Option < Deprecation > ,
86- #[ serde( flatten) ]
8786 pub inner : ItemEnum ,
8887}
8988
@@ -222,7 +221,7 @@ pub enum ItemKind {
222221}
223222
224223#[ derive( Clone , Debug , PartialEq , Eq , Hash , Serialize , Deserialize ) ]
225- #[ serde( tag = "kind" , content = "inner" , rename_all = "snake_case" ) ]
224+ #[ serde( rename_all = "snake_case" ) ]
226225pub enum ItemEnum {
227226 Module ( Module ) ,
228227 ExternCrate {
@@ -543,7 +542,6 @@ pub enum Term {
543542
544543#[ derive( Clone , Debug , PartialEq , Eq , Hash , Serialize , Deserialize ) ]
545544#[ serde( rename_all = "snake_case" ) ]
546- #[ serde( tag = "kind" , content = "inner" ) ]
547545pub enum Type {
548546 /// Structs, enums, and unions
549547 ResolvedPath ( Path ) ,
0 commit comments