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

chore: Apply new lints in Clippy 1.78 (version 2) #5643

Merged
merged 7 commits into from
Jan 4, 2025

Conversation

jbencin
Copy link
Contributor

@jbencin jbencin commented Jan 3, 2025

Description

Apply the following lints introduced in Clippy 1.78:

  • unnecessary_get_then_check: Replace .get().is_some() with contains_key()
  • assigning_clones: Use possibly more efficient clone_from() instead of clone() where available
  • to_string_trait_impl: Implement std::fmt::Display instead of ToString
  • incompatible_msrv: Use correct MSRV in Cargo.toml

This is a newer version of #4780 made by re-applying changes on latest develop

Applicable issues

@jbencin jbencin requested review from a team as code owners January 3, 2025 05:35
@jbencin jbencin force-pushed the chore/clippy-1.78-new-lints branch from 7c3528b to b7c82ca Compare January 3, 2025 05:44
obycode
obycode previously approved these changes Jan 3, 2025
Copy link
Contributor

@obycode obycode left a comment

Choose a reason for hiding this comment

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

LGTM!

@obycode obycode requested a review from a team January 3, 2025 13:10
@jbencin jbencin enabled auto-merge January 3, 2025 18:38
@jbencin jbencin disabled auto-merge January 4, 2025 03:52
@jbencin jbencin enabled auto-merge January 4, 2025 03:53
@jbencin jbencin disabled auto-merge January 4, 2025 03:53
@jbencin jbencin added this pull request to the merge queue Jan 4, 2025
Merged via the queue into stacks-network:develop with commit 2e8ac08 Jan 4, 2025
166 of 173 checks passed
@jbencin jbencin deleted the chore/clippy-1.78-new-lints branch January 4, 2025 05:07
@blockstack-devops
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@stacks-network stacks-network locked as resolved and limited conversation to collaborators Jan 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants