Can I disable some lints in clippy.toml?

Some new lints were introduced in recent release, and I want to disable them temporarily workspace-wise, so I want to use clippy.toml.

However I can't figure how to do it. README says that clippy.toml is key value but doesn't give an example of disabling a lint.

I try:

assertions_on_result_states = allow

and

assertions_on_result_states = false

and I don't know if it's a wrong syntax, or it's not supported, or I missed something.

Not in clippy.toml. And not easily elsewhere,

You could use rustflags maybe (I didn't look into how that interacts with workspaces).

4 Likes