diff options
author | gennyble <gen@nyble.dev> | 2024-01-16 15:06:29 -0600 |
---|---|---|
committer | gennyble <gen@nyble.dev> | 2024-01-16 15:06:29 -0600 |
commit | c887f5fef803e720052898b9561028dfd50e51db (patch) | |
tree | 0ea9c8c9e6c4603d0626bc12e653b6421f16f78a /src/nih_kmeans.rs | |
parent | bbbac45d835dd40c3fb53f8c7f9a2731783841e8 (diff) | |
download | colorsquash-c887f5fef803e720052898b9561028dfd50e51db.tar.gz colorsquash-c887f5fef803e720052898b9561028dfd50e51db.zip |
ability to choose kmeans implementation
Diffstat (limited to 'src/nih_kmeans.rs')
-rw-r--r-- | src/nih_kmeans.rs | 2 |
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}; |