Networking fixes

This commit is contained in:
arkpar
2016-01-10 14:02:01 +01:00
parent 24ba723818
commit b0cef968e7
4 changed files with 73 additions and 23 deletions

View File

@@ -188,7 +188,7 @@ impl<'a, 'view> View<'a, 'view> for UntrustedRlp<'a> where 'a: 'view {
}
fn val_at<T>(&self, index: usize) -> Result<T, DecoderError> where T: Decodable {
self.at(index).unwrap().as_val()
try!(self.at(index)).as_val()
}
}