Skip to content

to_string is perhaps more idiomatic #788

@hoodie

Description

@hoodie

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-needs-discussionStatus: Needs further discussion before merging or work can be startedgood first issueThese issues are a good way to get started with Clippy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions