-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
A-lintArea: New lintsArea: New lintsL-pedanticLint: Belongs in the pedantic lint groupLint: Belongs in the pedantic lint groupgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy
Description
What it does
For ()
returning expressions, check that the semicolon is inside/outside the block.
Either way it is fine, but consistency is best. Having the semicolon inside may be slightly nicer and more similar to, say, conditionals and loop bodies.
Categories (optional)
- Kind:
clippy::style
Drawbacks
It is subjective, so perhaps we should offer both ways, one enabled by default.
Example
unsafe { f(x) };
Could be written as:
unsafe { f(x); }
RunDevelopment
Metadata
Metadata
Assignees
Labels
A-lintArea: New lintsArea: New lintsL-pedanticLint: Belongs in the pedantic lint groupLint: Belongs in the pedantic lint groupgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy