Cargo.toml versioning

This commit is contained in:
Matteo Paonessa 2024-01-12 15:18:26 +01:00
parent 9119be3516
commit 6373ce71a8
2 changed files with 3 additions and 6 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "libcaesium"
version = "0.13.1"
version = "0.13.0"
authors = ["Matteo Paonessa <matteo.paonessa@gmail.com>"]
edition = "2021"
categories = ["multimedia::images"]

View File

@ -49,16 +49,13 @@ pub fn compress_to_memory(mut in_file: Vec<u8>, parameters: &CSParameters) -> Re
}
unsafe {
return match catch_unwind(|| {
return catch_unwind(|| {
if parameters.optimize {
lossless(in_file, parameters)
} else {
lossy(in_file, parameters)
}
}) {
Ok(cb) => cb,
Err(_) => Err(io::Error::new(io::ErrorKind::Other, format!("Internal JPEG error: {}", JPEG_ERROR)))
};
}).unwrap_or_else(|_| Err(io::Error::new(io::ErrorKind::Other, format!("Internal JPEG error: {}", JPEG_ERROR))));
}
}