-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
Isn't this unsound?
let mut s = CompactString::const_new("test");
s.as_mut_str().make_ascii_uppercase();It mutates a &'static str without unsafe!
Possible solutions:
- Make
as_mut_str()returnOption<&mut str>(similar toas_static_str()). - Make
as_mut_str()unsafe.
Other methods may also be affected. Related issue: #326.
Even if this issue rests for a while, the documentation should warn about this.
Metadata
Metadata
Assignees
Labels
No labels