Allow unused imports in autogenerated code

These should not be there to begin with but they're hard to prevent.
This commit is contained in:
Sebastian Dröge 2020-10-17 12:04:24 +03:00
parent 1b00160388
commit 501934a29b
8 changed files with 7 additions and 9 deletions

View file

@ -40,6 +40,7 @@ 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 auto::*;

View file

@ -2,23 +2,14 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
#[cfg(any(feature = "v1_18", feature = "dox"))]
use glib::translate::*;
#[cfg(any(feature = "v1_18", feature = "dox"))]
use glib::value::FromValue;
#[cfg(any(feature = "v1_18", feature = "dox"))]
use glib::value::FromValueOptional;
#[cfg(any(feature = "v1_18", feature = "dox"))]
use glib::value::SetValue;
#[cfg(any(feature = "v1_18", feature = "dox"))]
use glib::value::Value;
#[cfg(any(feature = "v1_18", feature = "dox"))]
use glib::StaticType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
use glib::Type;
#[cfg(any(feature = "v1_18", feature = "dox"))]
use gobject_sys;
#[cfg(any(feature = "v1_18", feature = "dox"))]
use gst_base_sys;
#[cfg(any(feature = "v1_18", feature = "dox"))]

View file

@ -36,6 +36,7 @@ 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 auto::functions::*;
pub use auto::*;

View file

@ -63,6 +63,7 @@ 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 auto::*;

View file

@ -31,6 +31,7 @@ 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 auto::*;
mod net_client_clock;

View file

@ -43,6 +43,7 @@ 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 auto::functions::*;
pub use auto::*;

View file

@ -31,6 +31,7 @@ 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 auto::*;

View file

@ -42,6 +42,7 @@ 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 auto::*;