Avoid elided lifetimes to refer to XML lifetime
This commit is contained in:
parent
c6a6e707a4
commit
edc1fbd64c
|
@ -238,7 +238,7 @@ impl<'xml> Deserializer<'xml> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn peek_next_tag(&mut self) -> Result<Option<XmlRecord>, Error> {
|
||||
pub fn peek_next_tag(&mut self) -> Result<Option<XmlRecord<'xml>>, Error> {
|
||||
self.parser.peek_next_tag()
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ impl<'a> XmlParser<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn peek_next_tag(&mut self) -> Result<Option<XmlRecord>, Error> {
|
||||
pub fn peek_next_tag(&mut self) -> Result<Option<XmlRecord<'a>>, Error> {
|
||||
let item = match self.iter.peek() {
|
||||
Some(v) => v,
|
||||
None => return Ok(None),
|
||||
|
@ -33,7 +33,7 @@ impl<'a> XmlParser<'a> {
|
|||
};
|
||||
|
||||
Ok(Some(XmlRecord::Open(TagData {
|
||||
key: local,
|
||||
key: local.as_str(),
|
||||
attributes: Vec::new(),
|
||||
default_namespace: Some(""),
|
||||
namespaces: HashMap::new(),
|
||||
|
|
Loading…
Reference in New Issue