@@ -1683,7 +1683,7 @@ pub trait ObjectExt: ObjectType {
16831683 ///
16841684 /// `None` is returned if the object does not implement the interface `T`.
16851685 #[ doc( alias = "get_interface" ) ]
1686- fn interface < T : IsInterface > ( & self ) -> Option < InterfaceRef < T > > ;
1686+ fn interface < T : IsInterface > ( & self ) -> Option < InterfaceRef < ' _ , T > > ;
16871687
16881688 // rustdoc-stripper-ignore-next
16891689 /// Sets the property `property_name` of the object to value `value`.
@@ -2300,7 +2300,7 @@ impl<T: ObjectType> ObjectExt for T {
23002300 }
23012301
23022302 #[ inline]
2303- fn interface < U : IsInterface > ( & self ) -> Option < InterfaceRef < U > > {
2303+ fn interface < U : IsInterface > ( & self ) -> Option < InterfaceRef < ' _ , U > > {
23042304 Interface :: from_class ( self . object_class ( ) )
23052305 }
23062306
@@ -4032,7 +4032,7 @@ impl<T: IsClass> Class<T> {
40324032 /// Gets the parent class struct, if any.
40334033 #[ doc( alias = "g_type_class_peek_parent" ) ]
40344034 #[ inline]
4035- pub fn parent ( & self ) -> Option < ClassRef < T > > {
4035+ pub fn parent ( & self ) -> Option < ClassRef < ' _ , T > > {
40364036 unsafe {
40374037 let ptr = gobject_ffi:: g_type_class_peek_parent ( & self . 0 as * const _ as * mut _ ) ;
40384038 if ptr. is_null ( ) {
@@ -4171,7 +4171,7 @@ impl<T: IsInterface> Interface<T> {
41714171 ///
41724172 /// This will return `None` if `klass` is not implementing `Self`.
41734173 #[ inline]
4174- pub fn from_class < U : IsClass > ( klass : & Class < U > ) -> Option < InterfaceRef < T > > {
4174+ pub fn from_class < U : IsClass > ( klass : & Class < U > ) -> Option < InterfaceRef < ' _ , T > > {
41754175 if !klass. type_ ( ) . is_a ( T :: static_type ( ) ) {
41764176 return None ;
41774177 }
@@ -4241,7 +4241,7 @@ impl<T: IsInterface> Interface<T> {
42414241 /// interface.
42424242 #[ doc( alias = "g_type_interface_peek_parent" ) ]
42434243 #[ inline]
4244- pub fn parent ( & self ) -> Option < InterfaceRef < T > > {
4244+ pub fn parent ( & self ) -> Option < InterfaceRef < ' _ , T > > {
42454245 unsafe {
42464246 let ptr = gobject_ffi:: g_type_interface_peek_parent ( & self . 0 as * const _ as * mut _ ) ;
42474247 if ptr. is_null ( ) {
0 commit comments