You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just switched to this style and now all my else-statements are being triggered. Is there at least a way to tell clippy to silence this warning for the whole project? I can't find what to put inside .clippy.toml to silence this, if any such thing exists.
clippy.toml doesn't and won't support allowing/denying lints. You can do this in the main.rs/lib.rs file with #![allow(clippy::suspicious_else_formatting)] at the top of the file.
Activity
flip1995 commentedon Mar 10, 2019
Example:
Playground
sdegutis commentedon Jan 14, 2020
I just switched to this style and now all my else-statements are being triggered. Is there at least a way to tell clippy to silence this warning for the whole project? I can't find what to put inside .clippy.toml to silence this, if any such thing exists.
flip1995 commentedon Jan 16, 2020
clippy.toml doesn't and won't support allowing/denying lints. You can do this in the
main.rs/lib.rsfile with#![allow(clippy::suspicious_else_formatting)]at the top of the file.Auto merge of #6473 - phansch:split-up-ui-test, r=flip1995
Auto merge of #7087 - Jarcho:allman_style_else, r=camsteffen
chilabot commentedon Dec 4, 2024
I prefer to put linting in the Cargo.toml file, in the
lints.clippysection. More accessible and visually better.