diff --git a/gstreamer/src/query.rs b/gstreamer/src/query.rs index 52a3cc009..90a6519ef 100644 --- a/gstreamer/src/query.rs +++ b/gstreamer/src/query.rs @@ -894,15 +894,13 @@ impl Uri { impl Uri { #[doc(alias = "gst_query_set_uri")] - pub fn set_uri<'b, U: Into<&'b str>>(&mut self, uri: U) { - let uri = uri.into(); + pub fn set_uri(&mut self, uri: &str) { unsafe { ffi::gst_query_set_uri(self.0.as_mut_ptr(), uri.to_glib_none().0); } } - pub fn set_redirection<'b, U: Into<&'b str>>(&mut self, uri: U, permanent: bool) { - let uri = uri.into(); + pub fn set_redirection(&mut self, uri: &str, permanent: bool) { unsafe { ffi::gst_query_set_uri_redirection(self.0.as_mut_ptr(), uri.to_glib_none().0); ffi::gst_query_set_uri_redirection_permanent( diff --git a/gstreamer/src/value.rs b/gstreamer/src/value.rs index 52ccbd326..5cb8ebd69 100644 --- a/gstreamer/src/value.rs +++ b/gstreamer/src/value.rs @@ -852,15 +852,12 @@ pub trait GstValueExt: Sized { #[doc(alias = "gst_value_serialize")] fn serialize(&self) -> Result; #[doc(alias = "gst_value_deserialize")] - fn deserialize<'a, T: Into<&'a str>>( - s: T, - type_: glib::Type, - ) -> Result; + fn deserialize(s: &str, type_: glib::Type) -> Result; #[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_value_deserialize_with_pspec")] - fn deserialize_with_pspec<'a, T: Into<&'a str>>( - s: T, + fn deserialize_with_pspec( + s: &str, pspec: &glib::ParamSpec, ) -> Result; } @@ -1002,14 +999,9 @@ impl GstValueExt for glib::Value { } } - fn deserialize<'a, T: Into<&'a str>>( - s: T, - type_: glib::Type, - ) -> Result { + fn deserialize(s: &str, type_: glib::Type) -> Result { assert_initialized_main_thread!(); - let s = s.into(); - unsafe { let mut value = glib::Value::from_type(type_); let ret: bool = from_glib(ffi::gst_value_deserialize( @@ -1026,14 +1018,12 @@ impl GstValueExt for glib::Value { #[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] - fn deserialize_with_pspec<'a, T: Into<&'a str>>( - s: T, + fn deserialize_with_pspec( + s: &str, pspec: &glib::ParamSpec, ) -> Result { assert_initialized_main_thread!(); - let s = s.into(); - unsafe { let mut value = glib::Value::from_type(pspec.value_type()); let ret: bool = from_glib(ffi::gst_value_deserialize_with_pspec(