mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-07 12:05:46 +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:
|
// Safety:
|
||||||
// Encoder::new() can only fail if `level` is invalid, but Default::default()
|
// Encoder::new() can only fail if `level` is invalid, but the level
|
||||||
// is guaranteed to be valid
|
// is `clamp`ed and therefore guaranteed to be valid
|
||||||
Box::new(zstd_encoder.unwrap().auto_finish())
|
Box::new(zstd_encoder.unwrap().auto_finish())
|
||||||
}
|
}
|
||||||
Tar | Zip => unreachable!(),
|
Tar | Zip => unreachable!(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user