bikesheddy opinion: to_owned is a superior way to convert from &str to String, and to_string is not great here.
-
-
It feels more like you are creating something owned from something borrowed- but maybe it's just me

-
Only if you already have a strong grasp on the string types and ownership in general. i.e. not newcomers
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.