Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2020-11-22 17:24:55 +0300
committerSebastian Dröge <sebastian@centricular.com>2020-11-23 11:28:33 +0300
commit1c9c22df0c6a6aeb7071f52efbba03d8f1d9a2cd (patch)
treeec5781a5940259a9f443fa5d12424b54a9cea220 /generic/threadshare/tests/jitterbuffer.rs
parent684f52b7d4b262079d819bf61ddc287ae325151c (diff)
generic: Update to 2018 edition
Diffstat (limited to 'generic/threadshare/tests/jitterbuffer.rs')
-rw-r--r--generic/threadshare/tests/jitterbuffer.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/threadshare/tests/jitterbuffer.rs b/generic/threadshare/tests/jitterbuffer.rs
index 58bb0a2c2..431dddf89 100644
--- a/generic/threadshare/tests/jitterbuffer.rs
+++ b/generic/threadshare/tests/jitterbuffer.rs
@@ -18,17 +18,17 @@
use gst::gst_debug;
use gst::prelude::*;
-use lazy_static::lazy_static;
-
use std::sync::mpsc;
-lazy_static! {
- static ref CAT: gst::DebugCategory = gst::DebugCategory::new(
+use once_cell::sync::Lazy;
+
+static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
+ gst::DebugCategory::new(
"ts-test",
gst::DebugColorFlags::empty(),
Some("Thread-sharing test"),
- );
-}
+ )
+});
fn init() {
use std::sync::Once;