FN useless format: struct with fmt::Display and format!() ? #3156
Labels
A-lint
Area: New lints
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
L-pedantic
Lint: Belongs in the pedantic lint group
In godbolt,
format!("{}", y)
andy.to_string()
didn't seem to differ, yet I think that.to_string()
is a bit clearer since we don't perform any special formatting here.Thoughts?
The text was updated successfully, but these errors were encountered: