File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -527,17 +527,15 @@ macro_rules! glib_boxed_inline_wrapper {
527
527
impl $( <$( $generic $( : $bound $( + $bound2) * ) ?) ,+>) ? $crate:: translate:: IntoGlibPtr <* mut $ffi_name> for $name $( <$( $generic) ,+>) ? {
528
528
#[ inline]
529
529
unsafe fn into_glib_ptr( self ) -> * mut $ffi_name {
530
- let s = std:: mem:: ManuallyDrop :: new( self ) ;
531
- $crate:: translate:: ToGlibPtr :: <* const $ffi_name>:: to_glib_none( & * s) . 0 as * mut _
530
+ $crate:: translate:: ToGlibPtr :: <* const $ffi_name>:: to_glib_full( & self ) as * mut _
532
531
}
533
532
}
534
533
535
534
#[ doc( hidden) ]
536
535
impl $( <$( $generic $( : $bound $( + $bound2) * ) ?) ,+>) ? $crate:: translate:: IntoGlibPtr <* const $ffi_name> for $name $( <$( $generic) ,+>) ? {
537
536
#[ inline]
538
537
unsafe fn into_glib_ptr( self ) -> * const $ffi_name {
539
- let s = std:: mem:: ManuallyDrop :: new( self ) ;
540
- $crate:: translate:: ToGlibPtr :: <* const $ffi_name>:: to_glib_none( & * s) . 0 as * const _
538
+ $crate:: translate:: ToGlibPtr :: <* const $ffi_name>:: to_glib_full( & self )
541
539
}
542
540
}
543
541
} ;
You can’t perform that action at this time.
0 commit comments