From 5b301e5ba1a5d293c8758594bd493770311c292c Mon Sep 17 00:00:00 2001 From: MA Beaudet Date: Tue, 9 Nov 2021 11:34:46 +0100 Subject: [PATCH] fix!: changed random poker-eval's crate feature to rand crate feature --- Cargo.toml | 3 +-- src/card.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c77cd10..b6c1a26 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 } diff --git a/src/card.rs b/src/card.rs index befe6e5..5710c41 100644 --- a/src/card.rs +++ b/src/card.rs @@ -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(); -- 2.20.1