We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
shared
1 parent af0dccb commit 2fe04a0Copy full SHA for 2fe04a0
1 file changed
src/json_data.rs
@@ -65,7 +65,10 @@ pub struct JsonTree<Size: size::Size> {
65
#[deref_mut]
66
pub tree: DataTreeReflection<String, Size>,
67
/// Optional list of shared inodes, their sizes, and their many links.
68
- #[cfg_attr(feature = "json", serde(skip_serializing_if = "JsonShared::skip"))]
+ #[cfg_attr(
69
+ feature = "json",
70
+ serde(default, skip_serializing_if = "JsonShared::skip")
71
+ )]
72
pub shared: JsonShared<Size>,
73
}
74
0 commit comments