From 7886536e48434608c32ce7ecb496dc7284020465 Mon Sep 17 00:00:00 2001 From: nalabrie Date: Tue, 16 Jul 2024 21:09:05 -0400 Subject: [PATCH] adjust README to indicate zstd runs in parallel, remove leftover code comment --- README.md | 2 +- src/commands/compress.rs | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) 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!(),