Commit 6325e0fc authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Fix build with ser_de feature enabled

parent 9f8ec3b3
......@@ -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)))
}
}
......
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