Update to rand 0.8

This commit is contained in:
Sebastian Dröge 2021-01-09 12:24:28 +02:00
parent 65c9c33f88
commit 84896e6468
5 changed files with 5 additions and 5 deletions

View file

@ -23,7 +23,7 @@ serde_json = { version = "1.0", optional = true }
[dev-dependencies]
pretty_assertions = "0.6"
rand = "0.7"
rand = "0.8"
[dev-dependencies.gst-check]
git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"

View file

@ -18,7 +18,7 @@ pin-project = "1"
once_cell = "1"
tokio = { git = "https://github.com/fengalin/tokio", tag = "tokio-0.2.13-throttling", features = ["io-util", "macros", "rt-core", "sync", "stream", "time", "tcp", "udp", "rt-util"] }
futures = { version = "0.3", features = ["thread-pool"] }
rand = "0.7"
rand = "0.8"
socket2 = "0.3"
[target.'cfg(windows)'.dependencies]

View file

@ -37,7 +37,7 @@ package="gstreamer-video"
[dev-dependencies]
pretty_assertions = "0.6"
rand = { version = "0.7", features = ["small_rng"] }
rand = { version = "0.8", features = ["small_rng"] }
[dev-dependencies.gst-check]
git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"

View file

@ -61,7 +61,7 @@ fn test_parse() {
let l = if data.len() == 1 {
1
} else {
rnd.gen_range(1, data.len())
rnd.gen_range(1..=data.len())
};
let buf = gst::Buffer::from_mut_slice(Vec::from(&data[0..l]));
input_len += buf.get_size();

View file

@ -62,7 +62,7 @@ fn test_parse() {
let l = if data.len() == 1 {
1
} else {
rnd.gen_range(1, data.len())
rnd.gen_range(1..=data.len())
};
let buf = gst::Buffer::from_mut_slice(Vec::from(&data[0..l]));
input_len += buf.get_size();