Skip to content

Consider returning &c_char from CString::as_ptr #16035

Closed
@Ms2ger

Description

@Ms2ger

This should make it a lot harder to run into the bug mentioned in its documentation (let p = foo.to_c_str().as_ptr();).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions