to_string is perhaps more idiomatic #788
Labels
good-first-issue
These issues are a good way to get started with Clippy
S-needs-discussion
Status: Needs further discussion before merging or work can be started
Currently there is https://github.com/Manishearth/rust-clippy/wiki#str_to_string and it tells you that
to_string()
is slow. Should a lint warn people about this? As soon as specializations lands there will be no difference and you could argue that &str.to_owned() is not idiomatic, so there might be a lint that contradicts an earlier lint.What do you think?
The text was updated successfully, but these errors were encountered: