From b43a68d10ab672349511f5b62e7ece2d428ff54e Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 5 Jan 2016 17:00:30 +0100 Subject: [PATCH] Rename some variables, so we can remove unneeded shorthand field patterns --- src/storage/json/parser.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/storage/json/parser.rs b/src/storage/json/parser.rs index 1b67be1a..dbcadd70 100644 --- a/src/storage/json/parser.rs +++ b/src/storage/json/parser.rs @@ -224,8 +224,8 @@ mod test { &FHD::Key{ref name, ref value} => { assert!(name == "a" || name == "b", "Key unknown"); match value.deref() { - &FHD::Array{values: ref vs} => { - for value in vs.iter() { + &FHD::Array{ref values} => { + for value in values.iter() { match value { &FHD::UInteger(u) => assert_eq!(u, 1), _ => assert!(false, "UInt is not an UInt"), @@ -233,8 +233,8 @@ mod test { } } - &FHD::Map{keys: ref ks} => { - for key in ks.iter() { + &FHD::Map{ref keys} => { + for key in keys.iter() { match key { &FHD::Key{ref name, ref value} => { match value.deref() {