From 749ea24f3b33c8bfbfee0004df14202c2f75410c Mon Sep 17 00:00:00 2001 From: gennyble Date: Mon, 9 Oct 2023 15:09:55 -0500 Subject: clean up api --- squash/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'squash/src') diff --git a/squash/src/main.rs b/squash/src/main.rs index f7964f4..fe7f310 100644 --- a/squash/src/main.rs +++ b/squash/src/main.rs @@ -51,8 +51,7 @@ fn main() -> Result<(), anyhow::Error> { } }; - let squasher = - Squasher::new_with_difference(color_count, &image.data, &colorsquash::redmean_difference); + let squasher = Squasher::new(color_count, &image.data); let size = squasher.map_over(&mut image.data); image.data.resize(size, 0); -- cgit 1.4.1-3-g733a5