Ban all unwrap usage in codebase

This commit is contained in:
topjohnwu
2025-12-08 23:31:04 -08:00
committed by John Wu
parent 200665c48a
commit ff4ca74cfe
24 changed files with 138 additions and 89 deletions
+1 -1
View File
@@ -248,7 +248,7 @@ pub fn get_encoder<'a, W: Write + 'a>(
FileFormat::ZOPFLI => {
// These options are already better than gzip -9
let opt = ZopfliOptions {
iteration_count: NonZeroU64::new(1).unwrap(),
iteration_count: unsafe { NonZeroU64::new_unchecked(1) },
maximum_block_splits: 1,
..Default::default()
};