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:
Diffstat (limited to 'generic/threadshare/tests/pipeline.rs')
-rw-r--r--generic/threadshare/tests/pipeline.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/threadshare/tests/pipeline.rs b/generic/threadshare/tests/pipeline.rs
index 1e97b0869..3b85012d0 100644
--- a/generic/threadshare/tests/pipeline.rs
+++ b/generic/threadshare/tests/pipeline.rs
@@ -18,17 +18,17 @@
use gst::prelude::*;
use gst::{gst_debug, gst_error};
-use lazy_static::lazy_static;
+use once_cell::sync::Lazy;
use std::sync::mpsc;
-lazy_static! {
- static ref CAT: gst::DebugCategory = gst::DebugCategory::new(
+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;