Remove serde de-ser constraint from Cases

This commit is contained in:
Paul Hauner
2019-05-15 11:45:50 +10:00
parent 5a361b852a
commit 035e124a14
2 changed files with 5 additions and 3 deletions

View File

@@ -1,6 +1,5 @@
use super::*;
use crate::yaml_decode::*;
use serde_derive::Deserialize;
use yaml_rust::YamlLoader;
mod ssz_generic;
@@ -9,7 +8,7 @@ mod ssz_static;
pub use ssz_generic::*;
pub use ssz_static::*;
#[derive(Debug, Deserialize)]
#[derive(Debug)]
pub struct Cases<T> {
pub test_cases: Vec<T>,
}
@@ -23,6 +22,7 @@ impl<T: YamlDecode> YamlDecode for Cases<T> {
let mut i = 0;
loop {
// `is_badvalue` indicates when we have reached the end of the YAML list.
if doc[i].is_badvalue() {
break;
} else {