blob: cabbb23f8651ef4f262de1adf3cad75843582aca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
### What it does
Checks for a `#[must_use]` attribute on
unit-returning functions and methods.
### Why is this bad?
Unit values are useless. The attribute is likely
a remnant of a refactoring that removed the return type.
### Examples
```
#[must_use]
fn useless() { }
```
|