-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Suggest into_owned instead of to_string for Cow<str> #2387
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
Comments
Note that this only applies when the |
See additional discussions in the duplicate issue #5987 |
Note that the claim that |
@Kixunil it is not |
Ah, I misread that code in the serde issue. |
Basically, this is a specific case of the more general "did you mean to move instead of clone this" set of errors. |
Note serde-rs/json#405.
We could also lint
to_vec
onCow<[T]>
and probably others.The text was updated successfully, but these errors were encountered: