style: Use the hashmap indexed getter in the custom props iterator code.

This will give a nicer error message, plus it's more compact.
This commit is contained in:
Emilio Cobos Álvarez 2017-10-04 14:44:57 +02:00
parent 08fd5ba8c1
commit f072c0bb05
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -197,7 +197,7 @@ where
let ref key = index[index.len() - self.pos - 1];
self.pos += 1;
let value = self.inner.values.get(key).unwrap();
let value = &self.inner.values[key];
Some((key, value))
}
}