From 66e552bd4bdfaf5ffa5aa91e85645d002e6fdc36 Mon Sep 17 00:00:00 2001 From: Mark Koch Date: Thu, 7 Sep 2023 09:25:15 +0100 Subject: [PATCH] Serialise custom constants with internal tag --- 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 {