From 6325e0fcce43384a19924b412086aaeef65beeb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 28 Oct 2018 17:48:42 +0000 Subject: [PATCH] Fix build with ser_de feature enabled --- gstreamer/src/tags_serde.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gstreamer/src/tags_serde.rs b/gstreamer/src/tags_serde.rs index f13b53f8d..dd388a0b9 100644 --- a/gstreamer/src/tags_serde.rs +++ b/gstreamer/src/tags_serde.rs @@ -35,7 +35,7 @@ macro_rules! ser_tag ( ); // serialize trait is only available for `&self`, but we need to mutate the iterator -struct TagValuesSer<'a>(Rc>>); +struct TagValuesSer<'a>(Rc>>); impl<'a> TagValuesSer<'a> { fn from(tags_ser: &TagsSer<'a>) -> Self { TagValuesSer(Rc::clone(&tags_ser.1)) @@ -76,9 +76,9 @@ impl<'a> Serialize for TagValuesSer<'a> { } } -struct TagsSer<'a>(&'a str, Rc>>); +struct TagsSer<'a>(&'a str, Rc>>); impl<'a> TagsSer<'a> { - fn new(name: &'a str, tag_iter: GenericTagIterator<'a>) -> Self { + fn new(name: &'a str, tag_iter: GenericTagIter<'a>) -> Self { TagsSer(name, Rc::new(RefCell::new(tag_iter))) } }