disco: Rename misnamed variable.
This commit is contained in:
parent
9cf1521775
commit
82fa22cd06
1 changed files with 1 additions and 1 deletions
|
|
@ -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 doesn’t support that yet, see issue #2.
|
// TODO: this must check for the namespace of the attribute, but minidom doesn’t support that yet, see issue #2.
|
||||||
let xml_lang = child.attr("lang").unwrap_or("");
|
let xml_lang = child.attr("lang").unwrap_or("");
|
||||||
let name = child.attr("name")
|
let name = child.attr("name")
|
||||||
.and_then(|node| node.parse().ok());
|
.and_then(|name| name.parse().ok());
|
||||||
identities.push(Identity {
|
identities.push(Identity {
|
||||||
category: category.to_owned(),
|
category: category.to_owned(),
|
||||||
type_: type_.to_owned(),
|
type_: type_.to_owned(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue