Skip to content

Commit

Permalink
error message should mention PhantomData
Browse files Browse the repository at this point in the history
  • Loading branch information
lwshang committed Jan 14, 2025
1 parent efd8228 commit 0a1c1fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/candid/src/types/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}
}

Expand Down

0 comments on commit 0a1c1fb

Please sign in to comment.