fixed return error type
This commit is contained in:
parent
f0a6376a9e
commit
71d7576566
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user