forked from mirrors/gstreamer-rs
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
|
||||
struct TagValuesSer<'a>(Rc<RefCell<GenericTagIterator<'a>>>);
|
||||
struct TagValuesSer<'a>(Rc<RefCell<GenericTagIter<'a>>>);
|
||||
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<RefCell<GenericTagIterator<'a>>>);
|
||||
struct TagsSer<'a>(&'a str, Rc<RefCell<GenericTagIter<'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)))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue