Skip to content

Commit

Permalink
Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Apr 27, 2024
1 parent 88da53e commit dbb78b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib
2 changes: 1 addition & 1 deletion rust/bin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ fn run() -> ffi::pngquant_error {
let extension = m.opt_str("ext").and_then(|s| CString::new(s).ok());
let map_file = m.opt_str("map").and_then(|s| CString::new(s).ok());

let colors = if let Some(c) = m.opt_str("colors").as_ref().or(m.free.get(0)).and_then(|s| s.parse().ok()) {
let colors = if let Some(c) = m.opt_str("colors").as_ref().or(m.free.first()).and_then(|s| s.parse().ok()) {
if !m.opt_present("colors") {
m.free.remove(0);
if m.free.is_empty() {
Expand Down

0 comments on commit dbb78b1

Please sign in to comment.