Remove unneeded shorthand field pattern
This commit is contained in:
parent
7b04d02a4a
commit
92d84d39e4
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ mod test {
|
||||||
Some(FHD::Map{keys}) => {
|
Some(FHD::Map{keys}) => {
|
||||||
for k in keys {
|
for k in keys {
|
||||||
match k {
|
match k {
|
||||||
FHD::Key{name: name, value: value} => {
|
FHD::Key{name, value} => {
|
||||||
assert!(name == "a" || name == "b", "Key unknown");
|
assert!(name == "a" || name == "b", "Key unknown");
|
||||||
match value.deref() {
|
match value.deref() {
|
||||||
&FHD::UInteger(u) => assert_eq!(u, 1),
|
&FHD::UInteger(u) => assert_eq!(u, 1),
|
||||||
|
|
Loading…
Reference in a new issue