From be0be3611fe4717f1fbbdf36be7911753b9d0810 Mon Sep 17 00:00:00 2001 From: Mark Koch <48097969+mark-koch@users.noreply.github.com> Date: Thu, 7 Sep 2023 09:41:14 +0100 Subject: [PATCH] fix: Serialise custom constants with internal tag (#502) Enables internal tagging for `typetag::serde` serialisation of `CustomConst` --- src/values.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/values.rs b/src/values.rs index a7d47eed7..f9419ede0 100644 --- a/src/values.rs +++ b/src/values.rs @@ -139,7 +139,7 @@ impl From 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 {