@@ -894,63 +894,32 @@ impl FromGlibPtrBorrow<*mut i8> for GString {
894
894
}
895
895
}
896
896
897
- #[ doc( hidden) ]
898
- impl < ' a > ToGlibPtr < ' a , * const u8 > for GString {
897
+ impl < ' a > ToGlibPtr < ' a , * const c_char > for GString {
899
898
type Storage = & ' a Self ;
900
899
901
900
#[ inline]
902
- fn to_glib_none ( & ' a self ) -> Stash < ' a , * const u8 , Self > {
903
- Stash ( self . as_ptr ( ) as * const u8 , self )
904
- }
905
-
906
- #[ inline]
907
- fn to_glib_full ( & self ) -> * const u8 {
908
- unsafe { self . clone ( ) . into_glib_ptr ( ) as * const u8 }
909
- }
910
- }
911
-
912
- #[ doc( hidden) ]
913
- impl < ' a > ToGlibPtr < ' a , * const i8 > for GString {
914
- type Storage = & ' a Self ;
915
-
916
- #[ inline]
917
- fn to_glib_none ( & ' a self ) -> Stash < ' a , * const i8 , Self > {
918
- Stash ( self . as_ptr ( ) as * const i8 , self )
919
- }
920
-
921
- #[ inline]
922
- fn to_glib_full ( & self ) -> * const i8 {
923
- unsafe { self . clone ( ) . into_glib_ptr ( ) as * const i8 }
924
- }
925
- }
926
-
927
- #[ doc( hidden) ]
928
- impl < ' a > ToGlibPtr < ' a , * mut u8 > for GString {
929
- type Storage = & ' a Self ;
930
-
931
- #[ inline]
932
- fn to_glib_none ( & ' a self ) -> Stash < ' a , * mut u8 , Self > {
933
- Stash ( self . as_ptr ( ) as * mut u8 , self )
901
+ fn to_glib_none ( & ' a self ) -> Stash < ' a , * const c_char , Self > {
902
+ Stash ( self . as_ptr ( ) as * const c_char , self )
934
903
}
935
904
936
905
#[ inline]
937
- fn to_glib_full ( & self ) -> * mut u8 {
938
- unsafe { self . clone ( ) . into_glib_ptr ( ) as * mut u8 }
906
+ fn to_glib_full ( & self ) -> * const c_char {
907
+ unsafe { self . clone ( ) . into_glib_ptr ( ) as * const _ }
939
908
}
940
909
}
941
910
942
911
#[ doc( hidden) ]
943
- impl < ' a > ToGlibPtr < ' a , * mut i8 > for GString {
912
+ impl < ' a > ToGlibPtr < ' a , * mut c_char > for GString {
944
913
type Storage = & ' a Self ;
945
914
946
915
#[ inline]
947
- fn to_glib_none ( & ' a self ) -> Stash < ' a , * mut i8 , Self > {
948
- Stash ( self . as_ptr ( ) as * mut i8 , self )
916
+ fn to_glib_none ( & ' a self ) -> Stash < ' a , * mut c_char , Self > {
917
+ Stash ( self . as_ptr ( ) as * mut c_char , self )
949
918
}
950
919
951
920
#[ inline]
952
- fn to_glib_full ( & self ) -> * mut i8 {
953
- unsafe { self . clone ( ) . into_glib_ptr ( ) as * mut i8 }
921
+ fn to_glib_full ( & self ) -> * mut c_char {
922
+ unsafe { self . clone ( ) . into_glib_ptr ( ) }
954
923
}
955
924
}
956
925
0 commit comments