From 2a935320e72dc9c55705ba4a5d5f2a18a59159dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 10 Dec 2022 20:01:03 +0200 Subject: [PATCH] gstreamer: Replace some generic function parameters with `impl trait` Part-of: --- gstreamer/src/log.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gstreamer/src/log.rs b/gstreamer/src/log.rs index 53d3861c6..d80dee631 100644 --- a/gstreamer/src/log.rs +++ b/gstreamer/src/log.rs @@ -174,9 +174,9 @@ impl DebugCategory { #[inline] #[doc(alias = "gst_debug_log")] #[doc(alias = "gst_debug_log_literal")] - pub fn log>( + pub fn log( self, - obj: Option<&O>, + obj: Option<&impl IsA>, level: crate::DebugLevel, file: &glib::GStr, function: &glib::GStr, @@ -192,9 +192,9 @@ impl DebugCategory { #[inline] #[doc(alias = "gst_debug_log_literal")] - pub fn log_literal>( + pub fn log_literal( self, - obj: Option<&O>, + obj: Option<&impl IsA>, level: crate::DebugLevel, file: &glib::GStr, function: &glib::GStr, @@ -212,9 +212,9 @@ impl DebugCategory { /// Logs without checking the log level. #[inline] #[doc(alias = "gst_debug_log")] - pub fn log_unfiltered>( + pub fn log_unfiltered( self, - obj: Option<&O>, + obj: Option<&impl IsA>, level: crate::DebugLevel, file: &glib::GStr, function: &glib::GStr, @@ -235,9 +235,9 @@ impl DebugCategory { /// Logs without checking the log level. #[inline] #[doc(alias = "gst_debug_log_literal")] - pub fn log_literal_unfiltered>( + pub fn log_literal_unfiltered( self, - obj: Option<&O>, + obj: Option<&impl IsA>, level: crate::DebugLevel, file: &glib::GStr, function: &glib::GStr,