Skip to content

Commit

Permalink
Auto merge of #7458 - flip1995:unused_unit-doc, r=giraffate
Browse files Browse the repository at this point in the history
Add fixed example to unused_unit documentation

changelog: none

(don't think this is worth a changelog mention)
  • Loading branch information
bors committed Jul 13, 2021
2 parents cb16543 + f05949f commit 94d6be4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clippy_lints/src/unused_unit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ declare_clippy_lint! {
/// ()
/// }
/// ```
/// is equivalent to
/// ```rust
/// fn return_unit() {}
/// ```
pub UNUSED_UNIT,
style,
"needless unit expression"
Expand Down

0 comments on commit 94d6be4

Please sign in to comment.