From ed72b8b25034fbc48db9a488ebdd1441f9b350c0 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 5 Jan 2016 16:59:38 +0100 Subject: [PATCH] Remove unneeded shorthand field pattern --- src/storage/json/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/json/parser.rs b/src/storage/json/parser.rs index bd4670ff..6a448c08 100644 --- a/src/storage/json/parser.rs +++ b/src/storage/json/parser.rs @@ -221,7 +221,7 @@ mod test { use std::ops::Deref; match k { - &FHD::Key{name: ref name, value: ref value} => { + &FHD::Key{ref name, ref value} => { assert!(name == "a" || name == "b", "Key unknown"); match value.deref() { &FHD::Array{values: ref vs} => {