Skip to content

Deal with the new clippy lint: uninlined_format_args #643

Closed
@cvybhu

Description

New version of clippy introduced the uninlined_format_args lint which recommends putting variable names directly into format strings.

In #639 we decided that the new lint should be disabled for now, because rust-analyzer has limited support for the code that clippy proposes.
The lint was disabled in CI and Makefile by adding a flag, but manually running cargo clippy would still throw a ton of errors.
Having to always add this flag is an unneeded annoyance for developers.

Maybe we could disable the lint on the level of the whole crate?
I think there's a special syntax for macros that are supposed to cover the whole crate, something like #![allow(clippy::new_ret_no_self)] (saw it here).

I also created this issue to track the problem and remeber to make the code clippy compliant once rust-analyzer is able to handle everything.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions