mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-07 03:55:28 +00:00
Update src/commands/compress.rs
Co-authored-by: figsoda <figsoda@pm.me>
This commit is contained in:
parent
e92b9ff723
commit
994a9b384d
@ -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!(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user