Skip to content
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

Fix or disable recent nightly clippy lints #2817

Merged
merged 2 commits into from
Oct 1, 2021

Conversation

teor2345
Copy link
Contributor

@teor2345 teor2345 commented Oct 1, 2021

Motivation

Some developers use nightly, and we want builds to run without clippy warnings.

Some clippy lints provide useful refactors.

Solution

  • Turn if ... panic!(...) into assert!
  • Remove redundant closures
  • Disable mutable collection key lint

It is a logic error for an item to be modified in such a way that the item’s ordering relative to any other item, as determined by the Ord trait, changes while it is in the set.

Review

Anyone can review this PR. It's not urgent.

Reviewer Checklist

@teor2345 teor2345 added A-rust Area: Updates to Rust code C-cleanup Category: This is a cleanup labels Oct 1, 2021
@teor2345 teor2345 added this to the 2021 Sprint 19 milestone Oct 1, 2021
@teor2345 teor2345 self-assigned this Oct 1, 2021
Copy link
Collaborator

@conradoplg conradoplg left a comment

Choose a reason for hiding this comment

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

Looks good

@conradoplg conradoplg enabled auto-merge (squash) October 1, 2021 14:51
@conradoplg conradoplg merged commit e5f5ac9 into main Oct 1, 2021
@conradoplg conradoplg deleted the nightly-clippy-2021-10-01 branch October 1, 2021 15:26
Copy link
Contributor

@dconnolly dconnolly left a comment

Choose a reason for hiding this comment

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

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rust Area: Updates to Rust code C-cleanup Category: This is a cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants