Rename some variables, so we can remove unneeded shorthand field patterns

This commit is contained in:
Matthias Beyer 2016-01-05 17:00:30 +01:00
parent 8b7ab8fae1
commit b43a68d10a

View file

@ -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() {