Skip to content

Commit

Permalink
fix: handle optional parameters (#4330)
Browse files Browse the repository at this point in the history
  • Loading branch information
aatifsyed authored May 16, 2024
1 parent fcb5f56 commit c23b5b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lotus_json/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ where

/// A domain struct that is (de) serialized through its lotus JSON representation.
#[derive(Debug, Deserialize, From, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[serde(bound = "T: HasLotusJson")]
#[serde(bound = "T: HasLotusJson", transparent)]
pub struct LotusJson<T>(#[serde(with = "self")] pub T);

impl<T: Clone> Clone for LotusJson<T> {
Expand Down

0 comments on commit c23b5b3

Please sign in to comment.