Skip to content

Making str allocate less #2: trim and substr #5479

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 22, 2013

Conversation

Kimundi
Copy link
Member

@Kimundi Kimundi commented Mar 21, 2013

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.

bors added a commit that referenced this pull request Mar 22, 2013
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.
@bors bors closed this Mar 22, 2013
@bors bors merged commit 0a47cd5 into rust-lang:incoming Mar 22, 2013
oli-obk pushed a commit to oli-obk/rust that referenced this pull request May 2, 2020
readme: update to cargo clippy --fix command

changelog: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants