Commit ad62d08d authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Implement Display for Caps and TagList

parent 2b029bcd
......@@ -116,6 +116,12 @@ impl str::FromStr for Caps {
}
}
impl fmt::Display for Caps {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.0.fmt(f)
}
}
impl CapsRef {
pub fn set_simple(&mut self, values: &[(&str, &ToSendValue)]) {
for &(name, value) in values {
......
......@@ -358,6 +358,12 @@ impl Default for TagList {
}
}
impl fmt::Display for TagList {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.0.fmt(f)
}
}
impl TagListRef {
pub fn add<'a, T: Tag<'a>>(&mut self, value: &T::TagType, mode: TagMergeMode)
where
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment