-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Allow clippy::suspicious_else_formatting when expanding query arguments. #817
Allow clippy::suspicious_else_formatting when expanding query arguments. #817
Conversation
Expanding several query arguments in the query! macro creates several if false { ... } statements, which in turn trigger clippy's suspicious_else_formatting (https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_else_formatting). This commit allows the clippy lint so users won't be disturbed by it.
There's a few other annoying lints from clippy on the generated code. Perhaps we should just wrap all generated code in |
I'm pretty new to the codebase, but it seems to be the right spot to add Please let me know if it isn't the case :) |
Nice, been running into this as well. This should really be fixed in clippy (rust-lang/rust-clippy#6249), but disabling clippy for all macro-generated code probably is fine too. |
I think we got rate limited ^^' |
Expanding several query arguments in the query! macro creates several
if false { ... }
statements, which in turn trigger clippy's suspicious_else_formatting.This commit allows the clippy lint so users won't be disturbed by it anymore.