about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2013-12-18 02:46:26 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2013-12-19 10:18:02 +1100
commitb906a8b256e8e7a289bb7b0e4382f30c4bd0f431 (patch)
tree2b05006e2479b7597f7fad5eba61e9904ec602cd /src/rustllvm/RustWrapper.cpp
parent17ac2aa523f03c386669f569bc89019deb0c0ecd (diff)
downloadrust-b906a8b256e8e7a289bb7b0e4382f30c4bd0f431.tar.gz
rust-b906a8b256e8e7a289bb7b0e4382f30c4bd0f431.zip
std::str: remove .as_mut_buf & rewrite/simplify `.push_char`.
`.as_mut_buf` was used exactly once, in `.push_char` which could be
written in a simpler way, using the `&mut ~[u8]` that it already
retrieved. In the rare situation when someone really needs
`.as_mut_buf`-like functionality (getting a `*mut u8`), they can go via
`str::raw::as_owned_vec`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions