Files
rust/library/alloc
xtqqczze 3ecd18ca37 std: make OsString::truncate a no-op when len > current_len
Align `OsString::truncate` (and the underlying WTF-8 implementation) with `String::truncate` by making it a no-op when `len > self.len()`.

Previously, `OsString::truncate` would panic if `len > self.len()`, while `String::truncate` treats such cases as a no-op.
2026-02-27 18:49:45 +00:00
..