From 9b062e052328559b962f0fcabb142713be61deda Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Fri, 6 Sep 2019 22:45:05 +1000 Subject: [PATCH] Fix compile error in ef_tests --- tests/ef_tests/src/cases/ssz_generic.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ef_tests/src/cases/ssz_generic.rs b/tests/ef_tests/src/cases/ssz_generic.rs index 420f59679..fc62e66fc 100644 --- a/tests/ef_tests/src/cases/ssz_generic.rs +++ b/tests/ef_tests/src/cases/ssz_generic.rs @@ -4,7 +4,7 @@ use super::*; use crate::cases::common::{SszStaticType, TestU128, TestU256}; use crate::cases::ssz_static::{check_serialization, check_tree_hash}; use crate::decode::yaml_decode_file; -use serde::{de::Error as SerdeError, Deserialize, Deserializer}; +use serde::{de::Error as SerdeError, Deserializer}; use serde_derive::Deserialize; use ssz_derive::{Decode, Encode}; use std::fs; @@ -287,7 +287,7 @@ fn byte_list_from_hex_str<'de, D, N: Unsigned>( where D: Deserializer<'de>, { - let s: String = Deserialize::deserialize(deserializer)?; + let s: String = serde::de::Deserialize::deserialize(deserializer)?; let decoded: Vec = hex::decode(&s.as_str()[2..]).map_err(D::Error::custom)?; if decoded.len() > N::to_usize() {