disco: Rename misnamed variable.

This commit is contained in:
Emmanuel Gil Peyrot 2017-04-19 02:27:33 +01:00
parent 9cf1521775
commit 82fa22cd06

View file

@ -60,7 +60,7 @@ pub fn parse_disco(root: &Element) -> Result<Disco, Error> {
// TODO: this must check for the namespace of the attribute, but minidom doesnt support that yet, see issue #2.
let xml_lang = child.attr("lang").unwrap_or("");
let name = child.attr("name")
.and_then(|node| node.parse().ok());
.and_then(|name| name.parse().ok());
identities.push(Identity {
category: category.to_owned(),
type_: type_.to_owned(),