Closed icorderi closed 8 years ago
@GGist, do you want to pump the version of the library and publishing it to crates.io before merging this?
@icorderi Sorry for the late reply. I went ahead and bumped the minor version for the current changes. Will merge this in a bit.
@GGist, btw, you bumped the minor without resetting the revision.
We went from 0.1.6
to 0.2.6
hehe
Oh thanks for that. I have done that so many times and every time I tell myself it won't happen again hah.
Anyway, luckily this merge warrants a minor version bump as well so I can reset the patch version back to zero soon.
Breaking changes:
FieldMap::{UPnP, UUID, URN, Unknown}
now holdString
instead ofVec<u8>
FieldMap::new
now takesInto<Cow<'a, str>>
instead of a&[u8]
Refactored:
FieldMap::parse_bytes
with the same behavior as the oldFieldMap::new
Additions:
FieldMap
for each variant:FieldMap::upnp(..) -> Option<FieldMap::UPnP>
FieldMap::uuid(..) -> Option<FieldMap::UUID>
FieldMap::urn(..) -> Option<FieldMap::URN>
FieldMap::unknown(..) -> Option<FieldMap::Unknown>