about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgennyble <gen@nyble.dev>2024-01-12 16:50:49 -0600
committergennyble <gen@nyble.dev>2024-01-12 16:50:49 -0600
commit242196775ab297613276364619c3eac14c9af2f3 (patch)
treea706f4919239225ecc9a90954c1353963f0f7786
parentd9f3d4c16b6b0f62d55a2975612c1a7f8d609542 (diff)
downloadcolorsquash-242196775ab297613276364619c3eac14c9af2f3.tar.gz
colorsquash-242196775ab297613276364619c3eac14c9af2f3.zip
squash: update to new algorithm names
-rw-r--r--squash/src/main.rs6
1 files changed, 3 insertions, 3 deletions
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);