]> git.beaudet.xyz Git - poker-eval.git/commitdiff
fix!: changed random poker-eval's crate feature to rand crate feature
authorMA Beaudet <ma@beaudet.xyz>
Tue, 9 Nov 2021 10:34:46 +0000 (11:34 +0100)
committerMA Beaudet <ma@beaudet.xyz>
Tue, 9 Nov 2021 10:34:46 +0000 (11:34 +0100)
Cargo.toml
src/card.rs

index c77cd104f0814911eeaa6811c0f6d381f56ac2ef..b6c1a26161ffcb8e2514e8df60d75d1f4d5fdc50 100644 (file)
@@ -8,8 +8,7 @@ crate-type = ["cdylib", "rlib"]
 
 [features]
 parallel = ["rayon"]
-random = ["rand"]
-default = ["random"]
+default = ["rand"]
 
 [dependencies]
 rand = { version = "0.8.4", optional = true }
index befe6e55cc6702eb2b6ac622e7f4c9838174af7f..5710c41e78f2bb0f24cb1ad454a190c980c76726 100644 (file)
@@ -79,7 +79,7 @@ impl Deck {
         }
     }
 
-    #[cfg(feature = "random")]
+    #[cfg(feature = "rand")]
     pub fn shuffle<'a>(&'a mut self) -> &'a mut Deck {
         use rand::prelude::*;
         let mut rng = thread_rng();