diff --git a/gst-plugin-cdg/tests/cdgdec.rs b/gst-plugin-cdg/tests/cdgdec.rs index 17be9ee2..f192f9d9 100644 --- a/gst-plugin-cdg/tests/cdgdec.rs +++ b/gst-plugin-cdg/tests/cdgdec.rs @@ -14,8 +14,8 @@ use std::path::PathBuf; use gstcdg; fn init() { - use std::sync::{Once, ONCE_INIT}; - static INIT: Once = ONCE_INIT; + use std::sync::Once; + static INIT: Once = Once::new(); INIT.call_once(|| { gst::init().unwrap(); diff --git a/gst-plugin-closedcaption/tests/mcc_enc.rs b/gst-plugin-closedcaption/tests/mcc_enc.rs index 2f683aae..9b5876e4 100644 --- a/gst-plugin-closedcaption/tests/mcc_enc.rs +++ b/gst-plugin-closedcaption/tests/mcc_enc.rs @@ -21,8 +21,8 @@ extern crate pretty_assertions; use glib::prelude::*; fn init() { - use std::sync::{Once, ONCE_INIT}; - static INIT: Once = ONCE_INIT; + use std::sync::Once; + static INIT: Once = Once::new(); INIT.call_once(|| { gst::init().unwrap(); diff --git a/gst-plugin-closedcaption/tests/mcc_parse.rs b/gst-plugin-closedcaption/tests/mcc_parse.rs index 8a251c3f..50c51d91 100644 --- a/gst-plugin-closedcaption/tests/mcc_parse.rs +++ b/gst-plugin-closedcaption/tests/mcc_parse.rs @@ -24,8 +24,8 @@ use rand::{Rng, SeedableRng}; use std::path::PathBuf; fn init() { - use std::sync::{Once, ONCE_INIT}; - static INIT: Once = ONCE_INIT; + use std::sync::Once; + static INIT: Once = Once::new(); INIT.call_once(|| { gst::init().unwrap(); diff --git a/gst-plugin-closedcaption/tests/scc_enc.rs b/gst-plugin-closedcaption/tests/scc_enc.rs index ee72f7ef..0ffc685f 100644 --- a/gst-plugin-closedcaption/tests/scc_enc.rs +++ b/gst-plugin-closedcaption/tests/scc_enc.rs @@ -20,8 +20,8 @@ extern crate pretty_assertions; fn init() { - use std::sync::{Once, ONCE_INIT}; - static INIT: Once = ONCE_INIT; + use std::sync::Once; + static INIT: Once = Once::new(); INIT.call_once(|| { gst::init().unwrap(); diff --git a/gst-plugin-closedcaption/tests/scc_parse.rs b/gst-plugin-closedcaption/tests/scc_parse.rs index 447f253d..4c2e0d6f 100644 --- a/gst-plugin-closedcaption/tests/scc_parse.rs +++ b/gst-plugin-closedcaption/tests/scc_parse.rs @@ -25,8 +25,8 @@ use rand::{Rng, SeedableRng}; use std::collections::VecDeque; fn init() { - use std::sync::{Once, ONCE_INIT}; - static INIT: Once = ONCE_INIT; + use std::sync::Once; + static INIT: Once = Once::new(); INIT.call_once(|| { gst::init().unwrap(); diff --git a/gst-plugin-rav1e/tests/rav1enc.rs b/gst-plugin-rav1e/tests/rav1enc.rs index 85840e8e..d28d27aa 100644 --- a/gst-plugin-rav1e/tests/rav1enc.rs +++ b/gst-plugin-rav1e/tests/rav1enc.rs @@ -15,8 +15,8 @@ extern crate gstreamer_video as gst_video; extern crate gstrav1e; fn init() { - use std::sync::{Once, ONCE_INIT}; - static INIT: Once = ONCE_INIT; + use std::sync::Once; + static INIT: Once = Once::new(); INIT.call_once(|| { gst::init().unwrap(); diff --git a/gst-plugin-reqwest/tests/reqwesthttpsrc.rs b/gst-plugin-reqwest/tests/reqwesthttpsrc.rs index 048139d5..edc71444 100644 --- a/gst-plugin-reqwest/tests/reqwesthttpsrc.rs +++ b/gst-plugin-reqwest/tests/reqwesthttpsrc.rs @@ -12,8 +12,8 @@ use gstreamer as gst; use std::sync::mpsc; fn init() { - use std::sync::{Once, ONCE_INIT}; - static INIT: Once = ONCE_INIT; + use std::sync::Once; + static INIT: Once = Once::new(); INIT.call_once(|| { gst::init().unwrap(); diff --git a/gst-plugin-sodium/tests/decrypter.rs b/gst-plugin-sodium/tests/decrypter.rs index d97fc9fb..f18456ae 100644 --- a/gst-plugin-sodium/tests/decrypter.rs +++ b/gst-plugin-sodium/tests/decrypter.rs @@ -54,8 +54,8 @@ lazy_static! { } fn init() { - use std::sync::{Once, ONCE_INIT}; - static INIT: Once = ONCE_INIT; + use std::sync::Once; + static INIT: Once = Once::new(); INIT.call_once(|| { gst::init().unwrap(); diff --git a/gst-plugin-sodium/tests/encrypter.rs b/gst-plugin-sodium/tests/encrypter.rs index 0302e086..5afc6ad1 100644 --- a/gst-plugin-sodium/tests/encrypter.rs +++ b/gst-plugin-sodium/tests/encrypter.rs @@ -55,8 +55,8 @@ lazy_static! { } fn init() { - use std::sync::{Once, ONCE_INIT}; - static INIT: Once = ONCE_INIT; + use std::sync::Once; + static INIT: Once = Once::new(); INIT.call_once(|| { gst::init().unwrap(); diff --git a/gst-plugin-threadshare/tests/appsrc.rs b/gst-plugin-threadshare/tests/appsrc.rs index 4d084095..8c4d2333 100644 --- a/gst-plugin-threadshare/tests/appsrc.rs +++ b/gst-plugin-threadshare/tests/appsrc.rs @@ -24,8 +24,8 @@ extern crate gstreamer_check as gst_check; extern crate gstthreadshare; fn init() { - use std::sync::{Once, ONCE_INIT}; - static INIT: Once = ONCE_INIT; + use std::sync::Once; + static INIT: Once = Once::new(); INIT.call_once(|| { gst::init().unwrap(); diff --git a/gst-plugin-threadshare/tests/proxy.rs b/gst-plugin-threadshare/tests/proxy.rs index 17e5ec0c..e0b71346 100644 --- a/gst-plugin-threadshare/tests/proxy.rs +++ b/gst-plugin-threadshare/tests/proxy.rs @@ -28,8 +28,8 @@ use std::sync::{Arc, Mutex}; extern crate gstthreadshare; fn init() { - use std::sync::{Once, ONCE_INIT}; - static INIT: Once = ONCE_INIT; + use std::sync::Once; + static INIT: Once = Once::new(); INIT.call_once(|| { gst::init().unwrap(); diff --git a/gst-plugin-threadshare/tests/queue.rs b/gst-plugin-threadshare/tests/queue.rs index 4428cabf..276c4ed1 100644 --- a/gst-plugin-threadshare/tests/queue.rs +++ b/gst-plugin-threadshare/tests/queue.rs @@ -28,8 +28,8 @@ use std::sync::{Arc, Mutex}; extern crate gstthreadshare; fn init() { - use std::sync::{Once, ONCE_INIT}; - static INIT: Once = ONCE_INIT; + use std::sync::Once; + static INIT: Once = Once::new(); INIT.call_once(|| { gst::init().unwrap(); diff --git a/gst-plugin-threadshare/tests/tcpclientsrc.rs b/gst-plugin-threadshare/tests/tcpclientsrc.rs index 0fedd334..0a509c55 100644 --- a/gst-plugin-threadshare/tests/tcpclientsrc.rs +++ b/gst-plugin-threadshare/tests/tcpclientsrc.rs @@ -31,8 +31,8 @@ use std::{thread, time}; extern crate gstthreadshare; fn init() { - use std::sync::{Once, ONCE_INIT}; - static INIT: Once = ONCE_INIT; + use std::sync::Once; + static INIT: Once = Once::new(); INIT.call_once(|| { gst::init().unwrap(); diff --git a/gst-plugin-threadshare/tests/udpsrc.rs b/gst-plugin-threadshare/tests/udpsrc.rs index 13a4aa2d..f2b117ec 100644 --- a/gst-plugin-threadshare/tests/udpsrc.rs +++ b/gst-plugin-threadshare/tests/udpsrc.rs @@ -28,8 +28,8 @@ use std::thread; extern crate gstthreadshare; fn init() { - use std::sync::{Once, ONCE_INIT}; - static INIT: Once = ONCE_INIT; + use std::sync::Once; + static INIT: Once = Once::new(); INIT.call_once(|| { gst::init().unwrap(); diff --git a/gst-plugin-togglerecord/tests/tests.rs b/gst-plugin-togglerecord/tests/tests.rs index 64a7852f..bd50d93a 100644 --- a/gst-plugin-togglerecord/tests/tests.rs +++ b/gst-plugin-togglerecord/tests/tests.rs @@ -30,8 +30,8 @@ use std::thread; extern crate gsttogglerecord; fn init() { - use std::sync::{Once, ONCE_INIT}; - static INIT: Once = ONCE_INIT; + use std::sync::Once; + static INIT: Once = Once::new(); INIT.call_once(|| { gst::init().unwrap();