-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Useless semicolons #3305
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
Comments
Adding a different case from rust-lang/rust#56338:
|
In my opinion this is fitter in rustc more than in Clippy. But better to have it in Clippy than having it nowhere. |
The first case is caught by rustc lint ( |
Shouldn't this be just an extension of the |
This applies to anything with a block: |
There is now a rustc lint |
I suggest to give some kind of warning or hint to remove the double ;; here:
The D language is different from Rust so the situation isn't directly comparable, but in a case like this gives a warning like this:
temp.d(2,22): Warning: use '{ }' for an empty statement, not a ';'
The text was updated successfully, but these errors were encountered: