From 82fa22cd0637a9867e25ab10ddf5fc206a16f182 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 19 Apr 2017 02:27:33 +0100 Subject: [PATCH] disco: Rename misnamed variable. --- src/disco.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/disco.rs b/src/disco.rs index 7b2232ec..bc65e3a1 100644 --- a/src/disco.rs +++ b/src/disco.rs @@ -60,7 +60,7 @@ pub fn parse_disco(root: &Element) -> Result { // 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 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(),