Closed pwoolcoc closed 4 years ago
Since format! returns a string, there is no reason to call format!().to_string().
format!
format!().to_string()
Also, since the "{}" formatting specifier calls .to_string() on it's argument, there is no reason to call .to_string() on the argument ourselves.
"{}"
.to_string()
this is perfect, thank you! 🚀
Since
format!
returns a string, there is no reason to callformat!().to_string()
.Also, since the
"{}"
formatting specifier calls.to_string()
on it's argument, there is no reason to call.to_string()
on the argument ourselves.