diff options
Diffstat (limited to 'generic/threadshare/tests/pad.rs')
-rw-r--r-- | generic/threadshare/tests/pad.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/threadshare/tests/pad.rs b/generic/threadshare/tests/pad.rs index 424df29ba..84b3d4642 100644 --- a/generic/threadshare/tests/pad.rs +++ b/generic/threadshare/tests/pad.rs @@ -747,7 +747,7 @@ fn setup( let pipeline = gst::Pipeline::new(None); // Src - let src_element = glib::Object::new::<ElementSrcTest>(&[]).unwrap(); + let src_element = glib::Object::new::<ElementSrcTest>(&[]); src_element.set_property("context", &context_name); pipeline.add(&src_element).unwrap(); @@ -767,8 +767,7 @@ fn setup( // Sink let (sender, receiver) = mpsc::channel::<Item>(10); - let sink_element = - glib::Object::new::<ElementSinkTest>(&[("sender", &ItemSender { sender })]).unwrap(); + let sink_element = glib::Object::new::<ElementSinkTest>(&[("sender", &ItemSender { sender })]); pipeline.add(&sink_element).unwrap(); last_element.link(&sink_element).unwrap(); |