@@ -99,7 +99,7 @@ impl Buffer {
99
99
/// Gives up ownership and returns a raw pointer to the buffer.
100
100
pub fn into_raw ( self ) -> * mut sys:: hb_buffer_t {
101
101
let raw = self . raw ;
102
- std :: mem:: forget ( self ) ;
102
+ core :: mem:: forget ( self ) ;
103
103
raw
104
104
}
105
105
@@ -122,10 +122,10 @@ impl Buffer {
122
122
unsafe {
123
123
sys:: hb_buffer_add_utf8 (
124
124
self . raw ,
125
- text. as_ptr ( ) as * const std :: os :: raw :: c_char ,
126
- text. len ( ) as std :: os :: raw :: c_int ,
125
+ text. as_ptr ( ) as * const core :: ffi :: c_char ,
126
+ text. len ( ) as core :: ffi :: c_int ,
127
127
0 ,
128
- text. len ( ) as std :: os :: raw :: c_int ,
128
+ text. len ( ) as core :: ffi :: c_int ,
129
129
)
130
130
} ;
131
131
}
@@ -144,8 +144,8 @@ impl Buffer {
144
144
sys:: hb_buffer_append (
145
145
self . raw ,
146
146
other. raw ,
147
- start as std :: os :: raw :: c_uint ,
148
- end as std :: os :: raw :: c_uint ,
147
+ start as core :: ffi :: c_uint ,
148
+ end as core :: ffi :: c_uint ,
149
149
)
150
150
} ;
151
151
}
@@ -297,8 +297,8 @@ impl Buffer {
297
297
}
298
298
}
299
299
300
- impl std :: fmt:: Debug for Buffer {
301
- fn fmt ( & self , fmt : & mut std :: fmt:: Formatter ) -> std :: fmt:: Result {
300
+ impl core :: fmt:: Debug for Buffer {
301
+ fn fmt ( & self , fmt : & mut core :: fmt:: Formatter ) -> core :: fmt:: Result {
302
302
fmt. debug_struct ( "Buffer" )
303
303
. field ( "direction" , & self . get_direction ( ) )
304
304
. field ( "script" , & self . get_script ( ) )
0 commit comments