Remove various unnecessary clippy allow attributes

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1214>
This commit is contained in:
Sebastian Dröge 2023-02-07 21:13:19 +02:00
parent 9155d6eb7b
commit f6f0465655
25 changed files with 1 additions and 130 deletions

View file

@ -2,7 +2,6 @@
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(feature = "dox", feature(doc_cfg))]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![allow(clippy::non_send_fields_in_send_ty)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
pub use ffi; pub use ffi;
@ -21,11 +20,6 @@ macro_rules! skip_assert_initialized {
() => {}; () => {};
} }
#[allow(clippy::unreadable_literal)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::match_same_arms)]
#[allow(clippy::type_complexity)]
#[allow(clippy::use_self)]
#[allow(unused_imports)] #[allow(unused_imports)]
mod auto; mod auto;
pub use crate::auto::*; pub use crate::auto::*;

View file

@ -2,7 +2,6 @@
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(feature = "dox", feature(doc_cfg))]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![allow(clippy::non_send_fields_in_send_ty)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
pub use ffi; pub use ffi;
@ -22,11 +21,6 @@ macro_rules! skip_assert_initialized {
() => {}; () => {};
} }
#[allow(clippy::unreadable_literal)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::match_same_arms)]
#[allow(clippy::use_self)]
#[allow(unused_imports)]
mod auto; mod auto;
pub use crate::auto::*; pub use crate::auto::*;

View file

@ -2,7 +2,6 @@
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(feature = "dox", feature(doc_cfg))]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![allow(clippy::non_send_fields_in_send_ty)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
pub use ffi; pub use ffi;
@ -22,12 +21,7 @@ macro_rules! skip_assert_initialized {
() => {}; () => {};
} }
#[allow(clippy::unreadable_literal)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::match_same_arms)]
#[allow(clippy::use_self)]
#[allow(clippy::needless_borrow)] #[allow(clippy::needless_borrow)]
#[allow(unused_imports)]
mod auto; mod auto;
pub use crate::auto::*; pub use crate::auto::*;

View file

@ -2,7 +2,6 @@
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(feature = "dox", feature(doc_cfg))]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![allow(clippy::non_send_fields_in_send_ty)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
pub use ffi; pub use ffi;
@ -21,12 +20,6 @@ macro_rules! skip_assert_initialized {
() => {}; () => {};
} }
#[allow(clippy::unreadable_literal)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::match_same_arms)]
#[allow(clippy::type_complexity)]
#[allow(clippy::use_self)]
#[allow(unused_imports)]
mod auto; mod auto;
pub use crate::auto::{functions::*, *}; pub use crate::auto::{functions::*, *};

View file

@ -2,7 +2,6 @@
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(feature = "dox", feature(doc_cfg))]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![allow(clippy::non_send_fields_in_send_ty)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
pub use ffi; pub use ffi;
@ -21,12 +20,6 @@ macro_rules! skip_assert_initialized {
() => {}; () => {};
} }
#[allow(clippy::unreadable_literal)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::match_same_arms)]
#[allow(clippy::type_complexity)]
#[allow(clippy::use_self)]
#[allow(unused_imports)]
mod auto; mod auto;
pub use crate::auto::*; pub use crate::auto::*;

View file

@ -2,7 +2,6 @@
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(feature = "dox", feature(doc_cfg))]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![allow(clippy::non_send_fields_in_send_ty)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
pub use ffi; pub use ffi;
@ -21,11 +20,6 @@ macro_rules! skip_assert_initialized {
() => {}; () => {};
} }
#[allow(clippy::unreadable_literal)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::match_same_arms)]
#[allow(clippy::use_self)]
#[allow(unused_imports)]
mod auto; mod auto;
mod control_point; mod control_point;
pub use crate::auto::*; pub use crate::auto::*;

View file

@ -2,7 +2,6 @@
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(feature = "dox", feature(doc_cfg))]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![allow(clippy::non_send_fields_in_send_ty)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
use std::sync::Once; use std::sync::Once;
@ -51,10 +50,6 @@ macro_rules! skip_assert_initialized {
() => {}; () => {};
} }
#[allow(clippy::unreadable_literal)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::match_same_arms)]
#[allow(clippy::use_self)]
#[allow(clippy::needless_borrow)] #[allow(clippy::needless_borrow)]
#[allow(deprecated)] #[allow(deprecated)]
#[allow(unused_imports)] #[allow(unused_imports)]

View file

@ -8,7 +8,6 @@
#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] #![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![allow(clippy::non_send_fields_in_send_ty)]
pub use ffi; pub use ffi;
pub use gst_gl; pub use gst_gl;
@ -21,7 +20,6 @@ macro_rules! assert_initialized_main_thread {
}; };
} }
#[allow(clippy::use_self)]
mod auto; mod auto;
pub use auto::*; pub use auto::*;

View file

@ -2,7 +2,6 @@
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(feature = "dox", feature(doc_cfg))]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![allow(clippy::non_send_fields_in_send_ty)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
pub use ffi; pub use ffi;
@ -23,11 +22,6 @@ macro_rules! skip_assert_initialized {
() => {}; () => {};
} }
#[allow(clippy::unreadable_literal)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::match_same_arms)]
#[allow(clippy::use_self)]
#[allow(unused_imports)]
mod auto; mod auto;
pub use crate::auto::{functions::*, *}; pub use crate::auto::{functions::*, *};

View file

@ -8,7 +8,6 @@
#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] #![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![allow(clippy::non_send_fields_in_send_ty)]
pub use ffi; pub use ffi;
pub use gst_gl; pub use gst_gl;
@ -21,7 +20,6 @@ macro_rules! assert_initialized_main_thread {
}; };
} }
#[allow(clippy::use_self)]
mod auto; mod auto;
pub use auto::*; pub use auto::*;

View file

@ -8,7 +8,6 @@
#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] #![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![allow(clippy::non_send_fields_in_send_ty)]
pub use ffi; pub use ffi;
pub use gst_gl; pub use gst_gl;
@ -21,7 +20,6 @@ macro_rules! assert_initialized_main_thread {
}; };
} }
#[allow(clippy::use_self)]
mod auto; mod auto;
pub use auto::*; pub use auto::*;

View file

@ -1,6 +1,5 @@
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(feature = "dox", feature(doc_cfg))]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![allow(clippy::non_send_fields_in_send_ty)]
use std::sync::Once; use std::sync::Once;

View file

@ -2,7 +2,6 @@
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(feature = "dox", feature(doc_cfg))]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![allow(clippy::non_send_fields_in_send_ty)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
pub use ffi; pub use ffi;
@ -21,11 +20,6 @@ macro_rules! skip_assert_initialized {
() => {}; () => {};
} }
#[allow(clippy::unreadable_literal)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::match_same_arms)]
#[allow(clippy::use_self)]
#[allow(unused_imports)]
mod auto; mod auto;
pub use crate::{auto::*, net_address_meta::*}; pub use crate::{auto::*, net_address_meta::*};
mod net_address_meta; mod net_address_meta;

View file

@ -2,7 +2,6 @@
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(feature = "dox", feature(doc_cfg))]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![allow(clippy::non_send_fields_in_send_ty)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
use std::sync::Once; use std::sync::Once;
@ -28,12 +27,6 @@ macro_rules! skip_assert_initialized {
() => {}; () => {};
} }
#[allow(clippy::unreadable_literal)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::match_same_arms)]
#[allow(clippy::type_complexity)]
#[allow(clippy::use_self)]
#[allow(unused_imports)]
mod auto; mod auto;
pub use crate::auto::{functions::*, *}; pub use crate::auto::{functions::*, *};

View file

@ -2,7 +2,6 @@
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(feature = "dox", feature(doc_cfg))]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![allow(clippy::non_send_fields_in_send_ty)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
pub use ffi; pub use ffi;
@ -22,7 +21,6 @@ macro_rules! assert_initialized_main_thread {
} }
#[allow(clippy::needless_borrow)] #[allow(clippy::needless_borrow)]
#[allow(unused_imports)]
mod auto; mod auto;
pub(crate) use crate::auto::PlayMessage as PlayMessageType; pub(crate) use crate::auto::PlayMessage as PlayMessageType;
pub use crate::auto::*; pub use crate::auto::*;

View file

@ -2,7 +2,6 @@
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(feature = "dox", feature(doc_cfg))]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![allow(clippy::non_send_fields_in_send_ty)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
pub use ffi; pub use ffi;
@ -21,12 +20,6 @@ macro_rules! assert_initialized_main_thread {
}; };
} }
#[allow(clippy::unreadable_literal)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::match_same_arms)]
#[allow(clippy::type_complexity)]
#[allow(clippy::cast_ptr_alignment)]
#[allow(clippy::use_self)]
#[allow(clippy::needless_borrow)] #[allow(clippy::needless_borrow)]
#[allow(unused_imports)] #[allow(unused_imports)]
mod auto; mod auto;

View file

@ -1,8 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file. // Take a look at the license at the top of the repository in the LICENSE file.
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(feature = "dox", feature(doc_cfg))]
#![allow(clippy::manual_range_contains)]
#![allow(clippy::non_send_fields_in_send_ty)]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
@ -22,12 +20,6 @@ macro_rules! skip_assert_initialized {
() => {}; () => {};
} }
#[allow(clippy::unreadable_literal)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::match_same_arms)]
#[allow(non_snake_case)]
#[allow(clippy::use_self)]
#[allow(unused_imports)]
mod auto; mod auto;
pub use crate::auto::{functions::*, *}; pub use crate::auto::{functions::*, *};

View file

@ -128,6 +128,7 @@ impl<'a> RTPBuffer<'a, Writable> {
} }
#[doc(alias = "gst_rtp_buffer_add_extension_onebyte_header")] #[doc(alias = "gst_rtp_buffer_add_extension_onebyte_header")]
#[allow(clippy::manual_range_contains)]
pub fn add_extension_onebyte_header( pub fn add_extension_onebyte_header(
&mut self, &mut self,
id: u8, id: u8,

View file

@ -2,7 +2,6 @@
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(feature = "dox", feature(doc_cfg))]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![allow(clippy::non_send_fields_in_send_ty)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
pub use ffi; pub use ffi;
@ -25,13 +24,7 @@ macro_rules! skip_assert_initialized {
() => {}; () => {};
} }
#[allow(clippy::unreadable_literal)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::match_same_arms)]
#[allow(clippy::type_complexity)] #[allow(clippy::type_complexity)]
#[allow(clippy::let_and_return)]
#[allow(clippy::use_self)]
#[allow(unused_imports)]
mod auto; mod auto;
pub use crate::auto::*; pub use crate::auto::*;

View file

@ -2,7 +2,6 @@
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(feature = "dox", feature(doc_cfg))]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![allow(clippy::non_send_fields_in_send_ty)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
pub use ffi; pub use ffi;
@ -22,10 +21,6 @@ macro_rules! skip_assert_initialized {
() => {}; () => {};
} }
#[allow(clippy::unreadable_literal)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::match_same_arms)]
#[allow(clippy::use_self)]
mod auto; mod auto;
pub use crate::auto::*; pub use crate::auto::*;

View file

@ -2,7 +2,6 @@
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(feature = "dox", feature(doc_cfg))]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![allow(clippy::non_send_fields_in_send_ty)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
pub use ffi; pub use ffi;
@ -21,11 +20,6 @@ macro_rules! skip_assert_initialized {
() => {}; () => {};
} }
#[allow(clippy::unreadable_literal)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::match_same_arms)]
#[allow(non_snake_case)]
#[allow(clippy::use_self)]
mod auto; mod auto;
pub use crate::auto::*; pub use crate::auto::*;

View file

@ -2,7 +2,6 @@
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(feature = "dox", feature(doc_cfg))]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![allow(clippy::non_send_fields_in_send_ty)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
#[doc(hidden)] #[doc(hidden)]
@ -35,17 +34,10 @@ macro_rules! skip_assert_initialized {
() => {}; () => {};
} }
#[allow(clippy::unreadable_literal)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::match_same_arms)]
#[allow(non_snake_case)]
#[allow(clippy::needless_borrow)] #[allow(clippy::needless_borrow)]
#[allow(clippy::use_self)]
#[allow(unused_imports)]
mod auto; mod auto;
pub use crate::auto::*; pub use crate::auto::*;
#[allow(dead_code)]
mod functions; mod functions;
pub use functions::*; pub use functions::*;

View file

@ -2,7 +2,6 @@
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(feature = "dox", feature(doc_cfg))]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![allow(clippy::non_send_fields_in_send_ty)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
pub use ffi; pub use ffi;
@ -22,12 +21,7 @@ macro_rules! skip_assert_initialized {
() => {}; () => {};
} }
#[allow(clippy::unreadable_literal)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::match_same_arms)]
#[allow(clippy::use_self)]
#[allow(clippy::needless_borrow)] #[allow(clippy::needless_borrow)]
#[allow(unused_imports)]
mod auto; mod auto;
pub use crate::auto::*; pub use crate::auto::*;

View file

@ -2,7 +2,6 @@
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(feature = "dox", feature(doc_cfg))]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![allow(clippy::non_send_fields_in_send_ty)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
pub use ffi; pub use ffi;
@ -14,10 +13,6 @@ macro_rules! skip_assert_initialized {
() => {}; () => {};
} }
#[allow(clippy::unreadable_literal)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::match_same_arms)]
#[allow(clippy::use_self)]
#[allow(clippy::needless_borrow)] #[allow(clippy::needless_borrow)]
#[allow(unused_imports)] #[allow(unused_imports)]
mod auto; mod auto;

View file

@ -4,7 +4,6 @@
#![recursion_limit = "256"] #![recursion_limit = "256"]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
#![allow(clippy::manual_range_contains)] #![allow(clippy::manual_range_contains)]
#![allow(clippy::non_send_fields_in_send_ty)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
// Re-exported for the subclass gst_plugin_define! macro // Re-exported for the subclass gst_plugin_define! macro
@ -39,14 +38,8 @@ macro_rules! skip_assert_initialized {
() => {}; () => {};
} }
#[allow(clippy::unreadable_literal)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::match_same_arms)]
#[allow(clippy::type_complexity)]
#[allow(clippy::use_self)]
#[allow(clippy::needless_borrow)] #[allow(clippy::needless_borrow)]
#[allow(clippy::let_unit_value)] #[allow(clippy::let_unit_value)]
#[allow(unused_imports)]
mod auto; mod auto;
pub use crate::auto::{functions::*, *}; pub use crate::auto::{functions::*, *};