about summary refs log tree commit diff
path: root/src/nih_kmeans.rs
diff options
context:
space:
mode:
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 ee752bc..36b17d1 100644
--- a/src/nih_kmeans.rs
+++ b/src/nih_kmeans.rs
@@ -91,7 +91,7 @@ impl KMeans {
 			.unwrap()
 	}
 
-	#[cfg(rand)]
+	#[cfg(feature = "rand")]
 	fn get_centroid_seeds_random(&self, k: usize) -> Vec<RGB<f32>> {
 		if k >= self.samples.len() {
 			return self.samples.iter().map(|&v| v.into()).collect();