From dbb78b1b5427d7f894787aed73a74dcc2929dcc6 Mon Sep 17 00:00:00 2001 From: Kornel Date: Sat, 27 Apr 2024 17:51:39 +0100 Subject: [PATCH] Bump --- lib | 2 +- rust/bin.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib b/lib index 787ba49c..fea449e3 160000 --- a/lib +++ b/lib @@ -1 +1 @@ -Subproject commit 787ba49c962b00be446cf401c0faef16cbeb1b7e +Subproject commit fea449e31038a1aeddf85b768d90426bb3a0411c diff --git a/rust/bin.rs b/rust/bin.rs index 57374af0..b151f42f 100644 --- a/rust/bin.rs +++ b/rust/bin.rs @@ -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() {