From 6096abf07193c2ac13e8cebd017f6ca08d68d38a Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Tue, 14 May 2019 15:16:02 +1000 Subject: [PATCH] Fix ssz_static deserialization --- tests/ef_tests/src/test_doc_cases/ssz_static.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/ef_tests/src/test_doc_cases/ssz_static.rs b/tests/ef_tests/src/test_doc_cases/ssz_static.rs index 8367f4c8e..9d78ddc4a 100644 --- a/tests/ef_tests/src/test_doc_cases/ssz_static.rs +++ b/tests/ef_tests/src/test_doc_cases/ssz_static.rs @@ -28,9 +28,11 @@ impl TestDecode for SszStatic { impl SszStatic { fn value(&self) -> Result { - serde_yaml::from_str(&self.raw_yaml.as_str()).map_err(|e| { + let wrapper: Value = serde_yaml::from_str(&self.raw_yaml.as_str()).map_err(|e| { Error::FailedToParseTest(format!("Unable to parse {} YAML: {:?}", self.type_name, e)) - }) + })?; + + Ok(wrapper.value) } }