]> git.lizzy.rs Git - rust.git/blob - src/docs/use_debug.txt
[Arithmetic] Consider literals
[rust.git] / src / docs / use_debug.txt
1 ### What it does
2 Checks for use of `Debug` formatting. The purpose of this
3 lint is to catch debugging remnants.
4
5 ### Why is this bad?
6 The purpose of the `Debug` trait is to facilitate
7 debugging Rust code. It should not be used in user-facing output.
8
9 ### Example
10 ```
11 println!("{:?}", foo);
12 ```