diff --git a/README.md b/README.md index a21d029..ee5a6cf 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ Output: | Format | `.tar` | `.zip` | `7z` | `.gz` | `.xz`, `.lzma` | `.bz`, `.bz2` | `.lz4` | `.sz` (Snappy) | `.zst` | `.rar` | |:---------:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:| -| Supported | ✓ | ✓¹ | ✓¹ | ✓² | ✓ | ✓ | ✓ | ✓² | ✓ | ✓³ | +| Supported | ✓ | ✓¹ | ✓¹ | ✓² | ✓ | ✓ | ✓ | ✓² | ✓² | ✓³ | ✓: Supports compression and decompression. diff --git a/src/commands/compress.rs b/src/commands/compress.rs index 55625ca..00f448a 100644 --- a/src/commands/compress.rs +++ b/src/commands/compress.rs @@ -77,9 +77,6 @@ pub fn compress_files( )?; // Use all available PHYSICAL cores for compression zstd_encoder.multithread(num_cpus::get_physical() as u32)?; - // Safety: - // Encoder::new() can only fail if `level` is invalid, but the level - // is `clamp`ed and therefore guaranteed to be valid Box::new(zstd_encoder.auto_finish()) } Tar | Zip | Rar | SevenZip => unreachable!(),