mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-10-31 22:58:51 +00:00
Update to rand 0.8
This commit is contained in:
parent
65c9c33f88
commit
84896e6468
5 changed files with 5 additions and 5 deletions
|
@ -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"
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue