Cargo.toml versioning
This commit is contained in:
parent
9119be3516
commit
6373ce71a8
|
@ -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"]
|
||||
|
|
|
@ -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))));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue