]> git.lizzy.rs Git - rust.git/commit
auto merge of #5479 : Kimundi/rust/str-dealloc, r=z0w0
authorbors <bors@rust-lang.org>
Fri, 22 Mar 2013 02:39:53 +0000 (19:39 -0700)
committerbors <bors@rust-lang.org>
Fri, 22 Mar 2013 02:39:53 +0000 (19:39 -0700)
commit5f2d4102c5dabde915f1f6cb99c38b9274790cda
treeef06cf4055b220ccc73f5dcd6c3c62faf53da292
parentd8c0da39402818db2d41369826956538ba9672e1
parent0a47cd5ef183d5a7e763484e211f4b3aed6d72de
auto merge of #5479 : Kimundi/rust/str-dealloc, r=z0w0

This makes the `trim` and `substr` functions return a slice instead of an `~str`, and removes the unnecessary `Trimmable` trait (`StrSlice` already contains the same functionality).

Also moves the `ToStr` implementations for the three str types into the str module in anticipation of further untangling.