about summary refs log tree commit diff
path: root/src/nih_kmeans.rs
diff options
context:
space:
mode:
authorgennyble <gen@nyble.dev>2024-01-16 15:06:29 -0600
committergennyble <gen@nyble.dev>2024-01-16 15:06:29 -0600
commitc887f5fef803e720052898b9561028dfd50e51db (patch)
tree0ea9c8c9e6c4603d0626bc12e653b6421f16f78a /src/nih_kmeans.rs
parentbbbac45d835dd40c3fb53f8c7f9a2731783841e8 (diff)
downloadcolorsquash-c887f5fef803e720052898b9561028dfd50e51db.tar.gz
colorsquash-c887f5fef803e720052898b9561028dfd50e51db.zip
ability to choose kmeans implementation
Diffstat (limited to 'src/nih_kmeans.rs')
-rw-r--r--src/nih_kmeans.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nih_kmeans.rs b/src/nih_kmeans.rs
index a34d528..ee752bc 100644
--- a/src/nih_kmeans.rs
+++ b/src/nih_kmeans.rs
@@ -1,6 +1,6 @@
 use std::collections::HashMap;
 
-#[cfg(rand)]
+#[cfg(feature = "rand")]
 use rand::{prelude::*, seq::index::sample};
 use rgb::{RGB, RGB8};