Remove unneeded shorthand field pattern

This commit is contained in:
Matthias Beyer 2016-01-05 16:59:38 +01:00
parent 4b489b2088
commit ed72b8b250

View file

@ -221,7 +221,7 @@ mod test {
use std::ops::Deref; use std::ops::Deref;
match k { match k {
&FHD::Key{name: ref name, value: 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{values: ref vs} => {