Skip to content

Suggest std::path::MAIN_SEPARATOR_STR #10480

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
frewsxcv opened this issue Mar 10, 2023 · 0 comments · Fixed by #10483
Closed

Suggest std::path::MAIN_SEPARATOR_STR #10480

frewsxcv opened this issue Mar 10, 2023 · 0 comments · Fixed by #10483
Labels
A-lint Area: New lints

Comments

@frewsxcv
Copy link
Member

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lint Area: New lints
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant