change huffman unimplemented to return Err in decode4
This commit is contained in:
		| @@ -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; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user