Closed
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); }