diff --git a/src/rlp.rs b/src/rlp.rs index e9e175363..cd83a8c7e 100644 --- a/src/rlp.rs +++ b/src/rlp.rs @@ -257,7 +257,7 @@ impl Decodable for Vec where T: Decodable { fn decode(rlp: &Rlp) -> Result { match rlp.is_list() { true => rlp.iter().map(|rlp| T::decode(&rlp)).collect(), - false => Err(DecoderError::RlpExpectedToBeValue) + false => Err(DecoderError::RlpExpectedToBeList) } } }