Rename some variables, so we can remove unneeded shorthand field patterns
This commit is contained in:
parent
8b7ab8fae1
commit
b43a68d10a
1 changed files with 4 additions and 4 deletions
|
@ -224,8 +224,8 @@ mod test {
|
||||||
&FHD::Key{ref name, ref value} => {
|
&FHD::Key{ref name, ref value} => {
|
||||||
assert!(name == "a" || name == "b", "Key unknown");
|
assert!(name == "a" || name == "b", "Key unknown");
|
||||||
match value.deref() {
|
match value.deref() {
|
||||||
&FHD::Array{values: ref vs} => {
|
&FHD::Array{ref values} => {
|
||||||
for value in vs.iter() {
|
for value in values.iter() {
|
||||||
match value {
|
match value {
|
||||||
&FHD::UInteger(u) => assert_eq!(u, 1),
|
&FHD::UInteger(u) => assert_eq!(u, 1),
|
||||||
_ => assert!(false, "UInt is not an UInt"),
|
_ => assert!(false, "UInt is not an UInt"),
|
||||||
|
@ -233,8 +233,8 @@ mod test {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&FHD::Map{keys: ref ks} => {
|
&FHD::Map{ref keys} => {
|
||||||
for key in ks.iter() {
|
for key in keys.iter() {
|
||||||
match key {
|
match key {
|
||||||
&FHD::Key{ref name, ref value} => {
|
&FHD::Key{ref name, ref value} => {
|
||||||
match value.deref() {
|
match value.deref() {
|
||||||
|
|
Loading…
Reference in a new issue