Auto merge of #7458 - flip1995:unused_unit-doc, r=giraffate

Add fixed example to unused_unit documentation

changelog: none

(don't think this is worth a changelog mention)
This commit is contained in:
bors 2021-07-13 13:43:12 +00:00
commit 94d6be4c0a

View file

@ -24,6 +24,10 @@ declare_clippy_lint! {
/// ()
/// }
/// ```
/// is equivalent to
/// ```rust
/// fn return_unit() {}
/// ```
pub UNUSED_UNIT,
style,
"needless unit expression"