diff --git a/gstreamer-video/src/video_overlay_composition.rs b/gstreamer-video/src/video_overlay_composition.rs index 691e71b7a..e1e7a0697 100644 --- a/gstreamer-video/src/video_overlay_composition.rs +++ b/gstreamer-video/src/video_overlay_composition.rs @@ -214,8 +214,8 @@ impl fmt::Debug for VideoOverlayCompositionRef { impl VideoOverlayComposition { #[doc(alias = "gst_video_overlay_composition_new")] - pub fn new<'a, T: IntoIterator>( - rects: T, + pub fn new<'a>( + rects: impl IntoIterator, ) -> Result { assert_initialized_main_thread!(); unsafe { diff --git a/gstreamer/src/caps.rs b/gstreamer/src/caps.rs index d0d891623..f15c11f10 100644 --- a/gstreamer/src/caps.rs +++ b/gstreamer/src/caps.rs @@ -58,10 +58,7 @@ impl Caps { } #[allow(clippy::should_implement_trait)] - pub fn from_iter<'a, I>(iter: I) -> Self - where - I: IntoIterator, - { + pub fn from_iter<'a>(iter: impl IntoIterator) -> Self { assert_initialized_main_thread!(); let mut caps = Caps::new_empty(); @@ -71,10 +68,9 @@ impl Caps { caps } - pub fn from_iter_with_features<'a, 'b, I>(iter: I) -> Self - where - I: IntoIterator, - { + pub fn from_iter_with_features<'a, 'b>( + iter: impl IntoIterator, + ) -> Self { assert_initialized_main_thread!(); let mut caps = Caps::new_empty(); diff --git a/gstreamer/src/date_time.rs b/gstreamer/src/date_time.rs index d94c5d7b2..513eb7435 100644 --- a/gstreamer/src/date_time.rs +++ b/gstreamer/src/date_time.rs @@ -109,22 +109,14 @@ fn validate( impl DateTime { #[doc(alias = "gst_date_time_new")] - pub fn new< - TZ: Into>, - Y: Into, - MO: Into>, - D: Into>, - H: Into>, - MI: Into>, - S: Into>, - >( - tzoffset: TZ, - year: Y, - month: MO, - day: D, - hour: H, - minute: MI, - seconds: S, + pub fn new( + tzoffset: impl Into>, + year: impl Into, + month: impl Into>, + day: impl Into>, + hour: impl Into>, + minute: impl Into>, + seconds: impl Into>, ) -> Result { assert_initialized_main_thread!(); @@ -153,20 +145,13 @@ impl DateTime { } #[doc(alias = "gst_date_time_new_local_time")] - pub fn new_local_time< - Y: Into, - MO: Into>, - D: Into>, - H: Into>, - MI: Into>, - S: Into>, - >( - year: Y, - month: MO, - day: D, - hour: H, - minute: MI, - seconds: S, + pub fn new_local_time( + year: impl Into, + month: impl Into>, + day: impl Into>, + hour: impl Into>, + minute: impl Into>, + seconds: impl Into>, ) -> Result { assert_initialized_main_thread!(); diff --git a/gstreamer/src/structure.rs b/gstreamer/src/structure.rs index 51680523f..1008e32b9 100644 --- a/gstreamer/src/structure.rs +++ b/gstreamer/src/structure.rs @@ -100,10 +100,10 @@ impl Structure { } #[allow(clippy::should_implement_trait)] - pub fn from_iter<'a, 'b, I>(name: &str, iter: I) -> Structure - where - I: IntoIterator, - { + pub fn from_iter<'a, 'b>( + name: &str, + iter: impl IntoIterator, + ) -> Structure { assert_initialized_main_thread!(); let mut structure = Structure::new_empty(name);