Update example dependencies
This commit is contained in:
parent
8cfad86ec1
commit
d315e27451
4 changed files with 9 additions and 11 deletions
|
|
@ -21,5 +21,8 @@ default-features = false
|
|||
features = ["json", "rustls-tls"]
|
||||
|
||||
[dependencies.rand]
|
||||
version = "0.7"
|
||||
features = ["wasm-bindgen"]
|
||||
version = "0.8"
|
||||
|
||||
[dependencies.getrandom]
|
||||
version = "0.2"
|
||||
features = ["js"]
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ impl Pokemon {
|
|||
let id = {
|
||||
let mut rng = rand::rngs::OsRng;
|
||||
|
||||
rng.gen_range(0, Pokemon::TOTAL)
|
||||
rng.gen_range(0..Pokemon::TOTAL)
|
||||
};
|
||||
|
||||
let fetch_entry = async {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue