Skip to content

Commit 6654ec5

Browse files
committed
fix: propagate meta generic to BinProperty
1 parent 495b554 commit 6654ec5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

crates/ltk_meta/src/property.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,16 @@ use crate::traits::PropertyExt;
1717
#[derive(Clone, Copy, Default, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
1818
pub struct NoMeta;
1919

20-
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
20+
#[cfg_attr(
21+
feature = "serde",
22+
derive(serde::Serialize, serde::Deserialize),
23+
serde(bound = "for <'dee> M: serde::Serialize + serde::Deserialize<'dee>")
24+
)]
2125
#[derive(Clone, PartialEq, Debug)]
22-
pub struct BinProperty {
26+
pub struct BinProperty<M = NoMeta> {
2327
pub name_hash: u32,
2428
#[cfg_attr(feature = "serde", serde(flatten))]
25-
pub value: PropertyValueEnum,
29+
pub value: PropertyValueEnum<M>,
2630
}
2731

2832
impl BinProperty {

0 commit comments

Comments
 (0)