Remove unneeded shorthand field pattern

This commit is contained in:
Matthias Beyer 2016-01-05 16:59:11 +01:00
parent 7b04d02a4a
commit 92d84d39e4
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ mod test {
Some(FHD::Map{keys}) => {
for k in keys {
match k {
FHD::Key{name: name, value: value} => {
FHD::Key{name, value} => {
assert!(name == "a" || name == "b", "Key unknown");
match value.deref() {
&FHD::UInteger(u) => assert_eq!(u, 1),