Skip to content

Commit 2fe04a0

Browse files
committed
fix(json): missing shared
1 parent af0dccb commit 2fe04a0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/json_data.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ pub struct JsonTree<Size: size::Size> {
6565
#[deref_mut]
6666
pub tree: DataTreeReflection<String, Size>,
6767
/// Optional list of shared inodes, their sizes, and their many links.
68-
#[cfg_attr(feature = "json", serde(skip_serializing_if = "JsonShared::skip"))]
68+
#[cfg_attr(
69+
feature = "json",
70+
serde(default, skip_serializing_if = "JsonShared::skip")
71+
)]
6972
pub shared: JsonShared<Size>,
7073
}
7174

0 commit comments

Comments
 (0)