Skip to content

Commit 052952f

Browse files
committed
feat(api): Default for JsonShared
1 parent f8faea2 commit 052952f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/json_data.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ use crate::{
1010
size::{self, Blocks, Bytes},
1111
};
1212
use derive_more::{Deref, DerefMut, From, TryInto};
13+
use smart_default::SmartDefault;
1314

1415
#[cfg(feature = "json")]
1516
use serde::{Deserialize, Serialize};
1617

1718
/// The `"shared"` field of [`JsonData`].
18-
#[derive(Debug, Clone)]
19+
#[derive(Debug, SmartDefault, Clone)]
1920
#[cfg_attr(feature = "json", derive(Deserialize, Serialize))]
2021
#[cfg_attr(feature = "json", serde(rename_all = "kebab-case"))]
2122
pub struct JsonShared<Size: size::Size> {

0 commit comments

Comments
 (0)