Remove redundant prelude imports

When importing the prelude of a crate like `gst` the `glib` prelude is
provided too.  Shedding these imports saves quite a few lines and
adheres to keeping it simple; we're not reexporting base/parent preludes
for no reason :)
This commit is contained in:
Marijn Suijten 2021-04-29 11:47:24 +02:00
parent e6a81edb3c
commit f89e840d27
26 changed files with 0 additions and 35 deletions

View file

@ -14,7 +14,6 @@
use gst::element_error;
use gst::element_warning;
use gst::prelude::*;
use gst_pbutils::prelude::*;

View file

@ -27,8 +27,6 @@ void main () {
mod mirror {
use super::{gl, FRAGMENT_SHADER};
use gst::subclass::prelude::*;
use gst_base::subclass::prelude::*;
use gst_base::subclass::BaseTransformMode;
use gst_gl::prelude::*;
use gst_gl::subclass::prelude::*;

View file

@ -17,8 +17,6 @@
// {videotestsrc} - {xvimagesink(on linux)}
// {videotestsrc} - {glimagesink(on mac)}
use gst::prelude::*;
use gst_video::prelude::*;
use gio::prelude::*;

View file

@ -78,7 +78,6 @@ fn main_loop() -> Result<(), Error> {
mod media_factory {
use super::*;
use glib::subclass::prelude::*;
use gst_rtsp_server::subclass::prelude::*;
// In the imp submodule we include the actual implementation
@ -160,7 +159,6 @@ mod media_factory {
// Our custom media subclass that adds a custom attribute to the SDP returned by DESCRIBE
mod media {
use glib::subclass::prelude::*;
use gst_rtsp_server::subclass::prelude::*;
// In the imp submodule we include the actual implementation
@ -217,7 +215,6 @@ mod media {
mod server {
use super::*;
use glib::subclass::prelude::*;
use gst_rtsp_server::subclass::prelude::*;
// In the imp submodule we include the actual implementation
@ -282,7 +279,6 @@ mod server {
// Our custom RTSP client subclass.
mod client {
use glib::subclass::prelude::*;
use gst_rtsp_server::subclass::prelude::*;
// In the imp submodule we include the actual implementation

View file

@ -19,8 +19,6 @@ mod examples_common;
mod fir_filter {
use super::*;
use glib::subclass::prelude::*;
use gst::subclass::prelude::*;
use gst_base::subclass::prelude::*;
use byte_slice_cast::*;

View file

@ -5,7 +5,6 @@
// {videotestsrc} - { glsinkbin }
use gst::element_error;
use gst::prelude::*;
use gst_gl::prelude::*;

View file

@ -1,6 +1,5 @@
// Take a look at the license at the top of the repository in the LICENSE file.
use glib::subclass::prelude::*;
use glib::translate::*;
use gst::subclass::prelude::*;

View file

@ -1,6 +1,5 @@
// Take a look at the license at the top of the repository in the LICENSE file.
use glib::subclass::prelude::*;
use glib::translate::*;
use gst::subclass::prelude::*;

View file

@ -1,7 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file.
use glib::prelude::*;
use glib::subclass::prelude::*;
use glib::translate::*;
use gst::LoggableError;

View file

@ -3,7 +3,6 @@
use std::mem;
use glib::prelude::*;
use glib::subclass::prelude::*;
use glib::translate::*;
use gst::LoggableError;

View file

@ -1,7 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file.
use glib::prelude::*;
use glib::subclass::prelude::*;
use glib::translate::*;
use gst::subclass::prelude::*;

View file

@ -1,7 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file.
use glib::prelude::*;
use glib::subclass::prelude::*;
use glib::translate::*;
use gst::subclass::prelude::*;

View file

@ -5,7 +5,6 @@ use std::mem;
use crate::prelude::*;
use glib::subclass::prelude::*;
use glib::translate::*;
use gst::subclass::prelude::*;

View file

@ -1,7 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file.
use glib::prelude::*;
use glib::subclass::prelude::*;
use glib::translate::*;
use gst::subclass::prelude::*;

View file

@ -1,7 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file.
use glib::prelude::*;
use glib::subclass::prelude::*;
use glib::translate::*;
use gst::subclass::prelude::*;

View file

@ -2,7 +2,6 @@
use crate::prelude::*;
use glib::subclass::prelude::*;
use glib::translate::*;
use gst::gst_warning;

View file

@ -1,7 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file.
use crate::TestClock;
use glib::prelude::*;
use glib::translate::*;
use gst::prelude::*;
use std::marker::PhantomData;

View file

@ -5,7 +5,6 @@ use crate::prelude::*;
use glib::translate::*;
use gst::subclass::prelude::*;
use gst::{result_from_gboolean, Caps, LoggableError, CAT_RUST};
use gst_base::subclass::prelude::*;

View file

@ -6,7 +6,6 @@ use crate::prelude::*;
use glib::translate::*;
use gst::subclass::prelude::*;
use gst::{result_from_gboolean, Buffer, Caps, LoggableError, PadDirection, CAT_RUST};
use crate::GLBaseFilter;

View file

@ -1,7 +1,5 @@
// Take a look at the license at the top of the repository in the LICENSE file.
use glib::prelude::*;
use glib::subclass::prelude::*;
use glib::translate::*;
use gst::subclass::prelude::*;

View file

@ -1,7 +1,5 @@
// Take a look at the license at the top of the repository in the LICENSE file.
use glib::prelude::*;
use glib::subclass::prelude::*;
use glib::translate::*;
use gst::subclass::prelude::*;

View file

@ -1,10 +1,8 @@
// Take a look at the license at the top of the repository in the LICENSE file.
use glib::prelude::*;
use glib::subclass::prelude::*;
use glib::translate::*;
use gst::subclass::prelude::*;
use gst_base::subclass::prelude::*;
use crate::VideoSink;

View file

@ -1,6 +1,5 @@
// Take a look at the license at the top of the repository in the LICENSE file.
use glib::prelude::*;
use glib::translate::*;
use gst::prelude::*;
use std::cmp;

View file

@ -23,7 +23,6 @@ use crate::StateChangeError;
use crate::StateChangeReturn;
use crate::StateChangeSuccess;
use glib::prelude::*;
use glib::translate::*;
use std::ffi::CStr;

View file

@ -16,7 +16,6 @@ use std::num::NonZeroU32;
use std::ops::Deref;
use std::ptr;
use glib::prelude::*;
use glib::translate::{
from_glib, from_glib_full, from_glib_none, mut_override, IntoGlib, ToGlibPtr,
};

View file

@ -6,7 +6,6 @@ mod tutorial5 {
use gdk::prelude::*;
use gtk::prelude::*;
use gst::prelude::*;
use gst_video::prelude::*;
use std::ops;