You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the interest of exploring pure safe alternatives to unsafe functions, this issue tracks all uses and potential replacements. The unsafe portions are usually quite similar, so only one entry will be made per function.
Regarding the CStr::from_bytes_with_nul_unchecked, there exists a safe alternative: CStr::from_bytes_until_nul, which basically replaces all checks, we do already. Full disclosure, this function eventually calls the unchecked version internally, but IMO it's better to let core handle as much unsafe as possible, to profit from future optimizations.
sorry for late reply :) i agree with replacing CStr impl, if there is a safe, std alternative, that seems good to me. as for others, well, I would have to see proposals :)
In the interest of exploring pure safe alternatives to unsafe functions, this issue tracks all uses and potential replacements. The unsafe portions are usually quite similar, so only one entry will be made per function.
transmute
Fix clippy warnings. #88copy_nonoverlapping
MadeTry{From|Into}Ctx impl
onCStr
safe. #104CStr::from_bytes_with_nul_unchecked
The text was updated successfully, but these errors were encountered: