diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-04-24 13:55:01 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2020-04-24 13:55:01 +0300 |
commit | 5a7fcfad7f54c77fab886ed9c41fd44ca600638d (patch) | |
tree | a21553cd538fba753f681408947a0ac3039101df /utils | |
parent | 44d4a2a832f461e7c3f3e060dfaae283ff4a48fa (diff) |
Fix various new clippy warnings with clippy 1.43
Diffstat (limited to 'utils')
-rw-r--r-- | utils/fallbackswitch/build.rs | 4 | ||||
-rw-r--r-- | utils/fallbackswitch/src/base/aggregator.rs | 1 | ||||
-rw-r--r-- | utils/fallbackswitch/src/base/aggregator_pad.rs | 2 | ||||
-rw-r--r-- | utils/fallbackswitch/src/base/auto/aggregator.rs | 3 | ||||
-rw-r--r-- | utils/fallbackswitch/src/base/auto/aggregator_pad.rs | 4 | ||||
-rw-r--r-- | utils/fallbackswitch/src/base/subclass/aggregator.rs | 5 | ||||
-rw-r--r-- | utils/fallbackswitch/src/base/subclass/aggregator_pad.rs | 3 | ||||
-rw-r--r-- | utils/fallbackswitch/src/base/utils.rs | 1 | ||||
-rw-r--r-- | utils/fallbackswitch/src/fallbackswitch.rs | 6 | ||||
-rw-r--r-- | utils/togglerecord/build.rs | 2 | ||||
-rw-r--r-- | utils/togglerecord/src/togglerecord.rs | 4 |
11 files changed, 0 insertions, 35 deletions
diff --git a/utils/fallbackswitch/build.rs b/utils/fallbackswitch/build.rs index 0ff81ccba..939ddee02 100644 --- a/utils/fallbackswitch/build.rs +++ b/utils/fallbackswitch/build.rs @@ -1,7 +1,3 @@ -extern crate cc; -extern crate gst_plugin_version_helper; -extern crate pkg_config; - fn main() { gst_plugin_version_helper::get_info(); diff --git a/utils/fallbackswitch/src/base/aggregator.rs b/utils/fallbackswitch/src/base/aggregator.rs index fe2866f4e..e57f6c143 100644 --- a/utils/fallbackswitch/src/base/aggregator.rs +++ b/utils/fallbackswitch/src/base/aggregator.rs @@ -13,7 +13,6 @@ use glib::signal::{connect_raw, SignalHandlerId}; use glib::translate::*; use glib::IsA; use glib::Value; -use gst; use std::boxed::Box as Box_; use std::mem; use std::ptr; diff --git a/utils/fallbackswitch/src/base/aggregator_pad.rs b/utils/fallbackswitch/src/base/aggregator_pad.rs index 38c473272..7dcf69cb2 100644 --- a/utils/fallbackswitch/src/base/aggregator_pad.rs +++ b/utils/fallbackswitch/src/base/aggregator_pad.rs @@ -10,8 +10,6 @@ use super::gst_base_sys; use super::AggregatorPad; use glib::object::IsA; use glib::translate::*; -use gst; -use gst_sys; pub trait AggregatorPadExtManual: 'static { fn get_segment(&self) -> gst::Segment; diff --git a/utils/fallbackswitch/src/base/auto/aggregator.rs b/utils/fallbackswitch/src/base/auto/aggregator.rs index 6ceefd3d6..daaafdeda 100644 --- a/utils/fallbackswitch/src/base/auto/aggregator.rs +++ b/utils/fallbackswitch/src/base/auto/aggregator.rs @@ -10,9 +10,6 @@ use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; use glib::Value; -use glib_sys; -use gobject_sys; -use gst; use std::boxed::Box as Box_; use std::mem::transmute; diff --git a/utils/fallbackswitch/src/base/auto/aggregator_pad.rs b/utils/fallbackswitch/src/base/auto/aggregator_pad.rs index 7c8df57e5..2e5807c70 100644 --- a/utils/fallbackswitch/src/base/auto/aggregator_pad.rs +++ b/utils/fallbackswitch/src/base/auto/aggregator_pad.rs @@ -10,10 +10,6 @@ use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; use glib::Value; -use glib_sys; -use gobject_sys; -use gst; -use gst_sys; use std::boxed::Box as Box_; use std::mem::transmute; diff --git a/utils/fallbackswitch/src/base/subclass/aggregator.rs b/utils/fallbackswitch/src/base/subclass/aggregator.rs index 088601000..19aa071ee 100644 --- a/utils/fallbackswitch/src/base/subclass/aggregator.rs +++ b/utils/fallbackswitch/src/base/subclass/aggregator.rs @@ -6,16 +6,11 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use libc; - use super::super::gst_base_sys; -use glib_sys; -use gst_sys; use glib::translate::*; use glib::subclass::prelude::*; -use gst; use gst::prelude::*; use gst::subclass::prelude::*; diff --git a/utils/fallbackswitch/src/base/subclass/aggregator_pad.rs b/utils/fallbackswitch/src/base/subclass/aggregator_pad.rs index c09c4a36d..d7b78e4f9 100644 --- a/utils/fallbackswitch/src/base/subclass/aggregator_pad.rs +++ b/utils/fallbackswitch/src/base/subclass/aggregator_pad.rs @@ -7,11 +7,8 @@ // except according to those terms. use super::super::gst_base_sys; -use glib_sys; -use gst_sys; use glib::translate::*; -use gst; use glib::subclass::prelude::*; use gst::subclass::prelude::*; diff --git a/utils/fallbackswitch/src/base/utils.rs b/utils/fallbackswitch/src/base/utils.rs index ff456cd06..c9b935993 100644 --- a/utils/fallbackswitch/src/base/utils.rs +++ b/utils/fallbackswitch/src/base/utils.rs @@ -7,7 +7,6 @@ // except according to those terms. use glib::translate::mut_override; -use glib_sys; #[must_use = "if unused the Mutex will immediately unlock"] pub struct MutexGuard<'a>(&'a glib_sys::GMutex); diff --git a/utils/fallbackswitch/src/fallbackswitch.rs b/utils/fallbackswitch/src/fallbackswitch.rs index 7a317c7c2..f38f7bc1b 100644 --- a/utils/fallbackswitch/src/fallbackswitch.rs +++ b/utils/fallbackswitch/src/fallbackswitch.rs @@ -17,19 +17,13 @@ #[cfg(not(feature = "v1_18"))] use super::base as gst_base; -use glib; use glib::prelude::*; use glib::subclass; use glib::subclass::prelude::*; -use gst; use gst::prelude::*; use gst::subclass::prelude::*; -use gst_audio; -#[cfg(feature = "v1_18")] -use gst_base; use gst_base::prelude::*; use gst_base::subclass::prelude::*; -use gst_video; use once_cell::sync::Lazy; diff --git a/utils/togglerecord/build.rs b/utils/togglerecord/build.rs index 0d1ddb61d..17be1215e 100644 --- a/utils/togglerecord/build.rs +++ b/utils/togglerecord/build.rs @@ -1,5 +1,3 @@ -extern crate gst_plugin_version_helper; - fn main() { gst_plugin_version_helper::get_info() } diff --git a/utils/togglerecord/src/togglerecord.rs b/utils/togglerecord/src/togglerecord.rs index 07872b73d..9a3a000f6 100644 --- a/utils/togglerecord/src/togglerecord.rs +++ b/utils/togglerecord/src/togglerecord.rs @@ -15,15 +15,11 @@ // Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Boston, MA 02110-1335, USA. -use glib; use glib::prelude::*; use glib::subclass; use glib::subclass::prelude::*; -use gst; use gst::prelude::*; use gst::subclass::prelude::*; -use gst_audio; -use gst_video; use parking_lot::{Condvar, Mutex}; use std::cmp; |