From 5dade6a93c411a9a9363f2ba2162bc3bb0e60fcf Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Tue, 27 Apr 2021 09:55:52 +0200 Subject: [PATCH] Disallow unused_imports in `auto` module again This was temporarily allowed by Value trait refactoring, but the root cause of the unused imports has been found (`glib::ToValue` for property getters) and fixed in https://github.com/gtk-rs/gir/pull/1117. --- gstreamer-editing-services/src/lib.rs | 1 - gstreamer-gl/src/lib.rs | 1 - gstreamer-net/src/lib.rs | 1 - gstreamer-player/src/lib.rs | 1 - gstreamer-webrtc/src/lib.rs | 1 - gstreamer/src/lib.rs | 1 - 6 files changed, 6 deletions(-) diff --git a/gstreamer-editing-services/src/lib.rs b/gstreamer-editing-services/src/lib.rs index 910f0db68..ecfdf9ef2 100644 --- a/gstreamer-editing-services/src/lib.rs +++ b/gstreamer-editing-services/src/lib.rs @@ -51,7 +51,6 @@ macro_rules! skip_assert_initialized { #[allow(clippy::unreadable_literal)] #[allow(clippy::too_many_arguments)] #[allow(clippy::match_same_arms)] -#[allow(unused_imports)] mod auto; pub use crate::auto::*; diff --git a/gstreamer-gl/src/lib.rs b/gstreamer-gl/src/lib.rs index 142e8c744..dc0734d10 100644 --- a/gstreamer-gl/src/lib.rs +++ b/gstreamer-gl/src/lib.rs @@ -22,7 +22,6 @@ macro_rules! skip_assert_initialized { #[allow(clippy::unreadable_literal)] #[allow(clippy::too_many_arguments)] #[allow(clippy::match_same_arms)] -#[allow(unused_imports)] mod auto; pub use crate::auto::*; diff --git a/gstreamer-net/src/lib.rs b/gstreamer-net/src/lib.rs index 387f96763..4132907d3 100644 --- a/gstreamer-net/src/lib.rs +++ b/gstreamer-net/src/lib.rs @@ -21,7 +21,6 @@ macro_rules! skip_assert_initialized { #[allow(clippy::unreadable_literal)] #[allow(clippy::too_many_arguments)] #[allow(clippy::match_same_arms)] -#[allow(unused_imports)] mod auto; pub use crate::auto::*; mod net_client_clock; diff --git a/gstreamer-player/src/lib.rs b/gstreamer-player/src/lib.rs index a7a89b47d..e92e12eec 100644 --- a/gstreamer-player/src/lib.rs +++ b/gstreamer-player/src/lib.rs @@ -19,7 +19,6 @@ macro_rules! assert_initialized_main_thread { #[allow(clippy::match_same_arms)] #[allow(clippy::type_complexity)] #[allow(clippy::cast_ptr_alignment)] -#[allow(unused_imports)] mod auto; pub use crate::auto::*; diff --git a/gstreamer-webrtc/src/lib.rs b/gstreamer-webrtc/src/lib.rs index b988f7f03..454e916f6 100644 --- a/gstreamer-webrtc/src/lib.rs +++ b/gstreamer-webrtc/src/lib.rs @@ -22,7 +22,6 @@ macro_rules! skip_assert_initialized { #[allow(clippy::unreadable_literal)] #[allow(clippy::too_many_arguments)] #[allow(clippy::match_same_arms)] -#[allow(unused_imports)] mod auto; pub use crate::auto::*; diff --git a/gstreamer/src/lib.rs b/gstreamer/src/lib.rs index 640184f7c..a18e90ffc 100644 --- a/gstreamer/src/lib.rs +++ b/gstreamer/src/lib.rs @@ -26,7 +26,6 @@ macro_rules! skip_assert_initialized { #[allow(clippy::too_many_arguments)] #[allow(clippy::match_same_arms)] #[allow(clippy::type_complexity)] -#[allow(unused_imports)] mod auto; pub use crate::auto::functions::*; pub use crate::auto::*;