lost spaces again

This commit is contained in:
Nikolay Volf 2016-01-25 16:57:41 +04:00
parent 48d1760b7f
commit e592a185ef

View File

@ -333,7 +333,7 @@ impl<'a> Decoder for BasicDecoder<'a> {
Some(l @ 0x80...0xb7) => { Some(l @ 0x80...0xb7) => {
let last_index_of = 1 + l as usize - 0x80; let last_index_of = 1 + l as usize - 0x80;
if bytes.len() < last_index_of { if bytes.len() < last_index_of {
return Err(DecoderError::RlpInconsistentLengthAndData); return Err(DecoderError::RlpInconsistentLengthAndData);
} }
let d = &bytes[1..last_index_of]; let d = &bytes[1..last_index_of];
if l == 0x81 && d[0] < 0x80 { if l == 0x81 && d[0] < 0x80 {