blob: b68a8cda9c74bdabbbd6c61bac838ac187540b82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
### What it does
Checks for transmutes that could be a pointer cast.
### Why is this bad?
Readability. The code tricks people into thinking that
something complex is going on.
### Example
```
unsafe { std::mem::transmute::<*const [i32], *const [u16]>(p) };
```
Use instead:
```
p as *const [u16];
```
|