untitaker / rust-vobject

VObject parser and generator for Rust
https://docs.rs/vobject/
MIT License
16 stars 7 forks source link

Use Property::new() in make_builder_fn! #33

Open rogarb opened 2 years ago

rogarb commented 2 years ago

In the current VcardBuilder implementation, builder functions are created with the macro make_builder_fn!. This macro was instantiating Property object directly, thus not using the Property::new() interface.

When using the Property::new(name, value) interface, the value is escaped before being stored in the raw_value field. It was not the case when using direct instantiation.