change huffman unimplemented to return Err in decode4

This commit is contained in:
Sean McArthur
2017-10-05 17:07:06 -07:00
parent 720fb20bbf
commit 7ad29932f6

View File

@@ -93,7 +93,7 @@ impl Decoder {
if flags & ERROR == ERROR { if flags & ERROR == ERROR {
// Data followed the EOS marker // Data followed the EOS marker
unimplemented!(); return Err(DecoderError::InvalidHuffmanCode);
} }
let mut ret = None; let mut ret = None;