Skip to content

StrAllocating::to_string and into_string should be removed #14491

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

Closed
SimonSapin opened this issue May 28, 2014 · 2 comments
Closed

StrAllocating::to_string and into_string should be removed #14491

SimonSapin opened this issue May 28, 2014 · 2 comments

Comments

@SimonSapin
Copy link
Contributor

… since they are redundant with StrAllocating::to_owned and StrAllocating::into_owned. The latter names are more specific, assuming we talk about String as an "owned string" and &str as a "string slice".

@alexcrichton
Copy link
Member

The to_owned method has been deprecated and is slated to removal, and it appears that the into_owned method was accidentally not marked #[deprecated] just yet. I believe the current plan is to remove the owned functions and leave the string functions. That is not set in stone though.

@SimonSapin
Copy link
Contributor Author

I see, thanks. If it’s already #[deprecated], there is no need to keep this bug open. I blame #14493.

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

No branches or pull requests

2 participants