rust/src/docs/use_debug.txt
2022-09-09 13:36:26 +02:00

12 lines
No EOL
293 B
Text

### What it does
Checks for use of `Debug` formatting. The purpose of this
lint is to catch debugging remnants.
### Why is this bad?
The purpose of the `Debug` trait is to facilitate
debugging Rust code. It should not be used in user-facing output.
### Example
```
println!("{:?}", foo);
```