@@ -1688,7 +1688,7 @@ pub trait ObjectExt: ObjectType {
1688
1688
///
1689
1689
/// `None` is returned if the object does not implement the interface `T`.
1690
1690
#[ doc( alias = "get_interface" ) ]
1691
- fn interface < T : IsInterface > ( & self ) -> Option < InterfaceRef < T > > ;
1691
+ fn interface < T : IsInterface > ( & self ) -> Option < InterfaceRef < ' _ , T > > ;
1692
1692
1693
1693
// rustdoc-stripper-ignore-next
1694
1694
/// Sets the property `property_name` of the object to value `value`.
@@ -2307,7 +2307,7 @@ impl<T: ObjectType> ObjectExt for T {
2307
2307
}
2308
2308
2309
2309
#[ inline]
2310
- fn interface < U : IsInterface > ( & self ) -> Option < InterfaceRef < U > > {
2310
+ fn interface < U : IsInterface > ( & self ) -> Option < InterfaceRef < ' _ , U > > {
2311
2311
Interface :: from_class ( self . object_class ( ) )
2312
2312
}
2313
2313
@@ -4037,7 +4037,7 @@ impl<T: IsClass> Class<T> {
4037
4037
/// Gets the parent class struct, if any.
4038
4038
#[ doc( alias = "g_type_class_peek_parent" ) ]
4039
4039
#[ inline]
4040
- pub fn parent ( & self ) -> Option < ClassRef < T > > {
4040
+ pub fn parent ( & self ) -> Option < ClassRef < ' _ , T > > {
4041
4041
unsafe {
4042
4042
let ptr = gobject_ffi:: g_type_class_peek_parent ( & self . 0 as * const _ as * mut _ ) ;
4043
4043
if ptr. is_null ( ) {
@@ -4176,7 +4176,7 @@ impl<T: IsInterface> Interface<T> {
4176
4176
///
4177
4177
/// This will return `None` if `klass` is not implementing `Self`.
4178
4178
#[ inline]
4179
- pub fn from_class < U : IsClass > ( klass : & Class < U > ) -> Option < InterfaceRef < T > > {
4179
+ pub fn from_class < U : IsClass > ( klass : & Class < U > ) -> Option < InterfaceRef < ' _ , T > > {
4180
4180
if !klass. type_ ( ) . is_a ( T :: static_type ( ) ) {
4181
4181
return None ;
4182
4182
}
@@ -4246,7 +4246,7 @@ impl<T: IsInterface> Interface<T> {
4246
4246
/// interface.
4247
4247
#[ doc( alias = "g_type_interface_peek_parent" ) ]
4248
4248
#[ inline]
4249
- pub fn parent ( & self ) -> Option < InterfaceRef < T > > {
4249
+ pub fn parent ( & self ) -> Option < InterfaceRef < ' _ , T > > {
4250
4250
unsafe {
4251
4251
let ptr = gobject_ffi:: g_type_interface_peek_parent ( & self . 0 as * const _ as * mut _ ) ;
4252
4252
if ptr. is_null ( ) {
0 commit comments