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 c77cd10..b6c1a26 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 befe6e5..5710c41 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();