diff --git a/src/commands/compress.rs b/src/commands/compress.rs index 5fc5caa..353d81f 100644 --- a/src/commands/compress.rs +++ b/src/commands/compress.rs @@ -79,8 +79,8 @@ pub fn compress_files( }), ); // Safety: - // Encoder::new() can only fail if `level` is invalid, but Default::default() - // is guaranteed to be valid + // 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.unwrap().auto_finish()) } Tar | Zip => unreachable!(),