Skip to content

Commit 3444e52

Browse files
committed
Do not use tag in serde for AnyProperty.
1 parent 694b559 commit 3444e52

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

examples/serde.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
pub fn main() -> anyhow::Result<()> {
33
use vcard4::parse;
44

5-
let uri = "file:///images/jdoe.jpeg";
6-
7-
let parsed = uri.parse::<vcard4::Uri>()?;
8-
95
const VCF: &str = include_str!("simon-perrault.vcf");
106

117
let cards = parse(VCF)?;

src/property.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ pub struct ExtensionProperty {
331331
#[cfg_attr(feature = "serde", cfg_eval::cfg_eval, serde_as)]
332332
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
333333
#[cfg_attr(feature = "zeroize", derive(Zeroize, ZeroizeOnDrop))]
334-
#[cfg_attr(feature = "serde", serde(tag = "kind", rename_all = "camelCase"))]
334+
#[cfg_attr(feature = "serde", serde(untagged, rename_all = "camelCase"))]
335335
#[allow(clippy::large_enum_variant)]
336336
pub enum AnyProperty {
337337
/// Text property.

0 commit comments

Comments
 (0)