fixed return error type

This commit is contained in:
debris 2015-11-26 12:21:17 +01:00
parent f0a6376a9e
commit 71d7576566
1 changed files with 1 additions and 1 deletions

View File

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