`*const u8` is used instead of `*const ffi::c_char` like in `ffi::CStr`
Open
- Dominant language
- Rust
- Stars
- 4
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
`from_ptr` and `as_ptr` both deal with `*const u8`, even though the equivalent methods in `core::ffi::CStr` use ~`*const i8`~ `*const ffi::c_char`.
Contributor guide
No contributing guide indexed for this repository
Research direction
Locate the `from_ptr` and `as_ptr` methods in the cstr8 source and compare their pointer types with the equivalent methods in `core::ffi::CStr`. Done means both methods use `*const ffi::c_char` consistently with `CStr`; check the existing test suite for affected API expectations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- backend-api-design
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100