blob: 06000a7ad98d5199cb5f41fdc590d49baaf3aa02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
### What it does
Checks for `Into`, `TryInto`, `From`, `TryFrom`, or `IntoIter` calls
which uselessly convert to the same type.
### Why is this bad?
Redundant code.
### Example
```
// format!() returns a `String`
let s: String = format!("hello").into();
```
Use instead:
```
let s: String = format!("hello");
```
|