rust-syndication / rss

Library for serializing the RSS web content syndication format
https://crates.io/crates/rss
Apache License 2.0
429 stars 53 forks source link

Add `From<String>` constructor for `Category` #165

Closed jbethune closed 3 months ago

jbethune commented 3 months ago

This is an alternative to the Default::default() constructor. The Default::default() constructor produces an empty string for the name, which is probably not what the user wants in most cases.

This PR also adds a similar From<&str> constructor.