No problem. Clippy also has a lint (temporary_cstring_as_ptr) that's intended to catch that particular "create a CString, call as_ptr, drop the CString" mistake, though I'm not sure how reliably it does so.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
No problem. Clippy also has a lint (temporary_cstring_as_ptr) that's intended to catch that particular "create a
CString
, callas_ptr
, drop theCString
" mistake, though I'm not sure how reliably it does so.