mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
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:
commit
94d6be4c0a
1 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,10 @@ declare_clippy_lint! {
|
||||||
/// ()
|
/// ()
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
|
/// is equivalent to
|
||||||
|
/// ```rust
|
||||||
|
/// fn return_unit() {}
|
||||||
|
/// ```
|
||||||
pub UNUSED_UNIT,
|
pub UNUSED_UNIT,
|
||||||
style,
|
style,
|
||||||
"needless unit expression"
|
"needless unit expression"
|
||||||
|
|
Loading…
Reference in a new issue