Open
Description
What it does
Sometime, people are using format!("{}")
to stringify an object, which can be rewritten in .to_string()
to keep code clean.
Lint Name
No response
Category
style
Advantage
No response
Drawbacks
No response
Example
let a = format!("{}", x);
Could be written as:
let a = x.to_string();