File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ impl CStr {
232
232
/// last at least `'a`. When `CStr` is alive, the memory pointed by `ptr`
233
233
/// must not be mutated.
234
234
#[ inline]
235
- pub unsafe fn from_char_ptr < ' a > ( ptr : * const crate :: ffi :: c_char ) -> & ' a Self {
235
+ pub unsafe fn from_char_ptr < ' a > ( ptr : * const c_char ) -> & ' a Self {
236
236
// SAFETY: The safety precondition guarantees `ptr` is a valid pointer
237
237
// to a `NUL`-terminated C string.
238
238
let len = unsafe { bindings:: strlen ( ptr) } + 1 ;
@@ -295,7 +295,7 @@ impl CStr {
295
295
296
296
/// Returns a C pointer to the string.
297
297
#[ inline]
298
- pub const fn as_char_ptr ( & self ) -> * const crate :: ffi :: c_char {
298
+ pub const fn as_char_ptr ( & self ) -> * const c_char {
299
299
self . 0 . as_ptr ( )
300
300
}
301
301
You can’t perform that action at this time.
0 commit comments