lost spaces

This commit is contained in:
Nikolay Volf 2016-01-25 16:54:52 +04:00
parent 45059d5119
commit 48d1760b7f

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 {