Skip to content

Commit

Permalink
fix: Serialise custom constants with internal tag (#502)
Browse files Browse the repository at this point in the history
Enables internal tagging for `typetag::serde` serialisation of
`CustomConst`
  • Loading branch information
mark-koch authored Sep 7, 2023
1 parent 204df83 commit be0be36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/values.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl<T: CustomConst> From<T> for Value {
///
/// When implementing this trait, include the `#[typetag::serde]` attribute to
/// enable serialization.
#[typetag::serde]
#[typetag::serde(tag = "c")]
pub trait CustomConst:
Send + Sync + std::fmt::Debug + CustomConstBoxClone + Any + Downcast
{
Expand Down

0 comments on commit be0be36

Please sign in to comment.