Skip to content

chore: clippy let-underscore-untyped #1218

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
wants to merge 1 commit into from

Conversation

nyurik
Copy link
Contributor

@nyurik nyurik commented May 27, 2023

Clippy keeps complaining about
https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped

Seems like a noop, esp considering that @dtolnay has filed a bug in
rust-lang/rust-clippy#10411

One issue though is that MSRV in .clippy.toml is not matching the one in Cargo.toml:

  • .clippy.toml: msrv = "1.48.0"
  • Cargo.toml: rust-version = "1.60"

Which one is the accurate one? I would assume its the Cargo.toml, in which case it might be better to apply this change?

Clippy keeps complaining about
  https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped

Seems like a noop, esp considering that @dtolnay has filed a bug in
  rust-lang/rust-clippy#10411

One issue though is that MSRV in .clippy.toml is not matching the one in Cargo.toml:
* .clippy.toml:  msrv = "1.48.0"
* Cargo.toml: rust-version = "1.60"

Which one is the accurate one?  I would assume its the Cargo.toml, in
which case it might be better to apply this change?
Copy link
Owner

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This lint was removed from clippy for being misguided, so I would prefer not to follow its guidance.

@dtolnay dtolnay closed this May 27, 2023
@nyurik nyurik deleted the let-underscore-untyped branch May 27, 2023 18:00
@nyurik
Copy link
Contributor Author

nyurik commented May 27, 2023

@dtolnay thx, i wasn't sure if its applicable or not. What about the difference in MSRV?

@dtolnay
Copy link
Owner

dtolnay commented May 27, 2023

I think it's fine. Some of the crates in the workspace have a different supported rust-version from one another.

@nyurik
Copy link
Contributor Author

nyurik commented May 27, 2023

I think it's fine. Some of the crates in the workspace have a different supported rust-version from one another.

But if they are different, shouldn't clippy rules be relevant to each specific crate? I honestly don't understand the need for a global clippy-only MSRV -- maybe there is some other reason I'm missing?

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.

2 participants