Skip to content

Suggest std::path::MAIN_SEPARATOR_STR #10480

Closed
@frewsxcv

Description

@frewsxcv

What it does

Suggests std::path::MAIN_SEPARATOR_STR over std::path::MAIN_SEPARATOR.to_string()

Lint Name

No response

Category

No response

Advantage

No response

Drawbacks

No response

Example

&std::path::MAIN_SEPARATOR.to_string()

Could be written as:

std::path::MAIN_SEPARATOR_STR

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions