Compare commits

..

No commits in common. "d31917ae12b0e0e10be3405750cf5c75dc2308aa" and "1e8683b25b940b1db9b1b7a30f70c45be120414d" have entirely different histories.

2 changed files with 1 additions and 10 deletions

View file

@ -1,4 +0,0 @@
analyze/
from/
to/
replacement/

View file

@ -179,8 +179,7 @@ fn main() {
Error::raw( Error::raw(
ErrorKind::ValueValidation, ErrorKind::ValueValidation,
format!("Could not open replacement file as an image: {}\n", final_replacement.into_os_string().to_str().unwrap()) format!("Could not open replacement file as an image: {}\n", final_replacement.into_os_string().to_str().unwrap())
).print().unwrap(); ).exit()
continue;
}, },
}; };
let repl_img = repl_img.to_rgba8(); let repl_img = repl_img.to_rgba8();
@ -246,10 +245,6 @@ fn main() {
cz.set_bitmap(repl_img.into_raw()); cz.set_bitmap(repl_img.into_raw());
cz.remove_palette(); cz.remove_palette();
if let Some(depth) = depth {
cz.header_mut().set_depth(*depth as u16)
}
if let Some(ver) = version { if let Some(ver) = version {
match cz.header_mut().set_version(*ver) { match cz.header_mut().set_version(*ver) {
Ok(_) => (), Ok(_) => (),