diff --git a/rust/candid/src/types/impls.rs b/rust/candid/src/types/impls.rs index a60fbfac..0682a465 100644 --- a/rust/candid/src/types/impls.rs +++ b/rust/candid/src/types/impls.rs @@ -457,7 +457,7 @@ where S: Serializer, { use serde::ser::Error; - Err(S::Error::custom("`Empty` cannot be serialized")) + Err(S::Error::custom("`PhantomData` cannot be serialized")) } }