From 242196775ab297613276364619c3eac14c9af2f3 Mon Sep 17 00:00:00 2001 From: gennyble Date: Fri, 12 Jan 2024 16:50:49 -0600 Subject: squash: update to new algorithm names --- squash/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'squash/src') diff --git a/squash/src/main.rs b/squash/src/main.rs index 5437ea1..8e3a79b 100644 --- a/squash/src/main.rs +++ b/squash/src/main.rs @@ -1,5 +1,5 @@ use cli::DifferenceFn; -use colorsquash::{Squasher, SquasherBuilder}; +use colorsquash::SquasherBuilder; use crate::cli::{InType, OutType}; @@ -23,8 +23,8 @@ fn main() -> Result<(), anyhow::Error> { } builder = match cli.difference { - DifferenceFn::Rgb => builder.difference(&colorsquash::difference::rgb_difference), - DifferenceFn::Redmean => builder.difference(&colorsquash::difference::redmean_difference), + DifferenceFn::Rgb => builder.difference(&colorsquash::difference::rgb), + DifferenceFn::Redmean => builder.difference(&colorsquash::difference::redmean), }; let mut squasher = builder.build(&image.data); -- cgit 1.4.1-3-g733a5