Update 'rand' dependency to 0.8.

This commit is contained in:
Jeb Rosen 2021-02-28 16:18:37 -08:00
parent e332ee83da
commit 9d45e786bb
6 changed files with 6 additions and 6 deletions

View File

@ -42,7 +42,7 @@ parking_lot = "0.11"
ubyte = {version = "0.10", features = ["serde"] }
serde = { version = "1.0", features = ["derive"] }
figment = { version = "0.10.2", features = ["toml", "env"] }
rand = "0.7"
rand = "0.8"
either = "1"
[dependencies.tokio]

View File

@ -7,4 +7,4 @@ publish = false
[dependencies]
rocket = { path = "../../core/lib" }
rand = "0.7"
rand = "0.8"

View File

@ -15,7 +15,7 @@ log = "0.4"
[dev-dependencies]
parking_lot = "0.11"
rand = "0.7"
rand = "0.8"
[dependencies.rocket_contrib]
path = "../../contrib/lib"

View File

@ -95,7 +95,7 @@ fn test_many_insertions() {
for i in 0..ITER {
// Issue a request to insert a new task with a random description.
let desc: String = thread_rng().sample_iter(&Alphanumeric).take(12).collect();
let desc: String = thread_rng().sample_iter(&Alphanumeric).take(12).map(char::from).collect();
client.post("/todo")
.header(ContentType::Form)
.body(format!("description={}", desc))

View File

@ -183,7 +183,7 @@ Finally, add a dependency for the `rand` crate to the `Cargo.toml` file:
```toml
[dependencies]
# existing Rocket dependencies...
rand = "0.6"
rand = "0.8"
```
Then, ensure that your application builds with the new code:

View File

@ -10,5 +10,5 @@ rocket = { path = "../../core/lib", features = ["secrets"] }
doc-comment = "0.3"
rocket_contrib = { path = "../../contrib/lib", features = ["json", "tera_templates", "diesel_sqlite_pool"] }
serde = { version = "1.0", features = ["derive"] }
rand = "0.7"
rand = "0.8"
figment = { version = "0.10", features = ["toml", "env"] }