RS.CLIPPY.DEFAULT_TRAIT_ACCESS
Checks for literal calls to `Default::default()`
This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: default_trait_access. Copyright ©2025 The Rust Team. All rights reserved.
What it does
Checks for literal calls to Default::default().
Why is this bad?
It's easier for the reader if the name of the type is used, rather than the
generic Default.
Example
let s: String = Default::default();
Use instead:
let s = String::default();