Skip to content

Commit 21ee5c0

Browse files
gate serde feature on flag
1 parent 79122c9 commit 21ee5c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,6 @@ pub struct ClassData {
198198
#[cfg_attr(feature = "serde", serde(rename = "type"))]
199199
pub typ: Option<String>,
200200

201-
#[serde(flatten)]
201+
#[cfg_attr(feature = "serde", serde(flatten))]
202202
pub extra: HashMap<String, String>,
203203
}

0 commit comments

Comments
 (0)