You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unnecessary conversions increase the complexity of the code, making it harder to read and maintain. They can also lead to unnecessary operations at runtime.
Example
// format!() returns a `String`
let s: String = format!("hello").into();
Instead do:
let s: String = format!("hello");
The text was updated successfully, but these errors were encountered:
What it does
Checks for unnecesary uses of conversions.
Why is this bad?
Unnecessary conversions increase the complexity of the code, making it harder to read and maintain. They can also lead to unnecessary operations at runtime.
Example
Instead do:
The text was updated successfully, but these errors were encountered: