remove unnecessary assertion

This commit is contained in:
Robert Habermeier 2016-07-11 19:56:27 +02:00
parent 673cde6c7f
commit 4269867ca4

View File

@ -84,8 +84,6 @@ fn write_chunk(raw_data: &[u8], compression_buffer: &mut Vec<u8>, path: &Path) -
let compressed = &compression_buffer[..compressed_size]; let compressed = &compression_buffer[..compressed_size];
let hash = compressed.sha3(); let hash = compressed.sha3();
assert!(snappy::validate_compressed_buffer(compressed));
let mut file_path = path.to_owned(); let mut file_path = path.to_owned();
file_path.push(hash.hex()); file_path.push(hash.hex());