fixed return error type

This commit is contained in:
debris 2015-11-26 12:21:17 +01:00
parent f0a6376a9e
commit 71d7576566

View File

@ -257,7 +257,7 @@ impl <T> Decodable for Vec<T> where T: Decodable {
fn decode(rlp: &Rlp) -> Result<Self, DecoderError> { fn decode(rlp: &Rlp) -> Result<Self, DecoderError> {
match rlp.is_list() { match rlp.is_list() {
true => rlp.iter().map(|rlp| T::decode(&rlp)).collect(), true => rlp.iter().map(|rlp| T::decode(&rlp)).collect(),
false => Err(DecoderError::RlpExpectedToBeValue) false => Err(DecoderError::RlpExpectedToBeList)
} }
} }
} }