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:
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
Could be written as: