projects
/
poker-eval.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe8f880
)
fix!: changed random poker-eval's crate feature to rand crate feature
author
MA Beaudet
<ma@beaudet.xyz>
Tue, 9 Nov 2021 10:34:46 +0000
(11:34 +0100)
committer
MA Beaudet
<ma@beaudet.xyz>
Tue, 9 Nov 2021 10:34:46 +0000
(11:34 +0100)
Cargo.toml
patch
|
blob
|
blame
|
history
src/card.rs
patch
|
blob
|
blame
|
history
diff --git
a/Cargo.toml
b/Cargo.toml
index
c77cd10
..
b6c1a26
100644
(file)
--- 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
(file)
--- a/
src/card.rs
+++ b/
src/card.rs
@@
-79,7
+79,7
@@
impl Deck {
}
}
- #[cfg(feature = "rand
om
")]
+ #[cfg(feature = "rand")]
pub fn shuffle<'a>(&'a mut self) -> &'a mut Deck {
use rand::prelude::*;
let mut rng = thread_rng();