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 Clippy format string lints #5723

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

jbencin
Copy link
Contributor

@jbencin jbencin commented Jan 17, 2025

Description

Apply Clippy lints related to format strings. Specifically, the following:

  • to_string_in_format_args
  • useless_format
  • format_in_format_args

Also there's a few other random, non-Clippy fixes in here that I didn't want to make a separate PR for

@jbencin jbencin requested a review from a team as a code owner January 17, 2025 18:47
jferrant
jferrant previously approved these changes Jan 17, 2025
@jbencin jbencin force-pushed the chore/clippy-format-strings branch from c504bc0 to 856542d Compare January 17, 2025 19:33
format!("{}", &inner_key),
format!("{}", v),
format!("{}", &inner_val),
(&inner_key).to_string(),
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can drop the reference and parens on this and others:

Suggested change
(&inner_key).to_string(),
inner_key.to_string(),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 00fc875

@jbencin jbencin requested a review from obycode January 19, 2025 19:01
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