mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-26 19:41:09 +00:00
Fix build with ser_de feature enabled
This commit is contained in:
parent
9f8ec3b35b
commit
6325e0fcce
1 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ macro_rules! ser_tag (
|
||||||
);
|
);
|
||||||
|
|
||||||
// serialize trait is only available for `&self`, but we need to mutate the iterator
|
// serialize trait is only available for `&self`, but we need to mutate the iterator
|
||||||
struct TagValuesSer<'a>(Rc<RefCell<GenericTagIterator<'a>>>);
|
struct TagValuesSer<'a>(Rc<RefCell<GenericTagIter<'a>>>);
|
||||||
impl<'a> TagValuesSer<'a> {
|
impl<'a> TagValuesSer<'a> {
|
||||||
fn from(tags_ser: &TagsSer<'a>) -> Self {
|
fn from(tags_ser: &TagsSer<'a>) -> Self {
|
||||||
TagValuesSer(Rc::clone(&tags_ser.1))
|
TagValuesSer(Rc::clone(&tags_ser.1))
|
||||||
|
@ -76,9 +76,9 @@ impl<'a> Serialize for TagValuesSer<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct TagsSer<'a>(&'a str, Rc<RefCell<GenericTagIterator<'a>>>);
|
struct TagsSer<'a>(&'a str, Rc<RefCell<GenericTagIter<'a>>>);
|
||||||
impl<'a> TagsSer<'a> {
|
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)))
|
TagsSer(name, Rc::new(RefCell::new(tag_iter)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue