RS.CLIPPY.USE_DEBUG
Use of `Debug`-based formatting
This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: use_debug. Copyright ©2025 The Rust Team. All rights reserved.
What it does
Checks for usage of Debug formatting. The purpose of this
lint is to catch debugging remnants.
Why restrict this?
The purpose of the Debug trait is to facilitate debugging Rust code,
and no guarantees are made about its output.
It should not be used in user-facing output.
Example
println!("{:?}", foo);