8000 Fix cargo lints on Windows by ChrisDenton · Pull Request #4335 · rust-lang/rustup · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix cargo lints on Windows #4335

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

Merged
merged 1 commit into from
May 16, 2025
Merged

Fix cargo lints on Windows #4335

merged 1 commit into from
May 16, 2025

Conversation

ChrisDenton
Copy link
Member

Produced by running:

cargo clippy --fix --all-targets --all-features

Mostly it's just moving variables inside the format string but there are a couple of other changes:

  • using contains() instead of iter().any() is more efficient
  • io::Error::new(io::ErrorKind::Other, ...) can be std::io::Error::other(_)

Produced by running:

cargo clippy --fix --all-targets --all-features
@rami3l rami3l added this pull request to the merge queue May 16, 2025
Merged via the queue into rust-lang:master with commit 7ba0abf May 16, 2025
29 checks passed
@ChrisDenton ChrisDenton deleted the clippy-win branch May 16, 2025 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0