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

Reference parameters inside the format! string (format!("package '{name}'...) #12892

Closed
shnaramn opened this issue Oct 29, 2023 · 5 comments
Closed

Comments

@shnaramn
Copy link

          nit: saying this just because I already made another comment but feel free to reference these inside the `format!` string (`format!("package '{name}'...`)

Originally posted by @epage in #12766 (comment)

@shnaramn
Copy link
Author

I'd like to fix this if approved.

@Rustin170506
Copy link
Member

Sounds good. You can give it a shot :(

@epage
Copy link
Contributor

epage commented Oct 30, 2023

If you want to refactor the existing code to do the inline parameters, then go for it.

There is a clippy lint for it to help guide the work (or have --fix do it for your). Unsure how everyone feels about merging a stylistic lint being enabled. It would help catch review feedback earlier in the process. We only enable lints in select crates (I think its just cargo lib crate?). until #12178.

@weihanglo
Copy link
Member

I would recommend we wait until #12178 gets landed, and adjust lint rules gradually. And it's getting closer!

@weihanglo
Copy link
Member

Going to close this as it is a general clippy fix. We don't need a dedicated issue for this specific review comment #12766 (comment).

Despite that, #12178 has been merged, so feel free to open a PR to update. And let's see how enormous the patch will be.

@weihanglo weihanglo closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2023
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

No branches or pull requests

4 participants