Skip to content

Commit ce66658

Browse files
authored
Update to rand=0.9
Avoids using reserved words in 2024
1 parent 185b63e commit ce66658

File tree

3 files changed

+82
-19
lines changed

3 files changed

+82
-19
lines changed

Cargo.lock

Lines changed: 79 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ predicates = "3"
106106
pretty_assertions = "1.0"
107107
proptest = "1.5"
108108
proptest-derive = "0.5"
109-
rand = "0.8"
109+
rand = "0.9"
110110
rstest = { version = "0.19", default-features = false }
111111
tracing-test = { version = "0.2", features = ["no-env-filter"] }
112112

tests/s3_integration.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,13 @@ impl TempBucket {
4949
.enable_all()
5050
.build()
5151
.expect("Create runtime");
52+
let mut rng = rand::rng();
5253
let bucket_name = format!(
5354
"conserve-s3-integration-{time}-{rand:x}",
5455
time = OffsetDateTime::now_utc()
5556
.format(format_description!("[year][month][day]-[hour][minute]"))
5657
.expect("Format time"),
57-
rand = rand::thread_rng().r#gen::<u64>()
58+
rand = rng.random::<u64>()
5859
);
5960
let app_name = AppName::new(format!(
6061
"conserve-s3-integration-test-{}",

0 commit comments

Comments
 (0)