Thankfully no one writes that today because String::from is objectively superior
-
-
This Tweet is unavailable.
-
Can I put on my idiot hat and suggest "string literals" become (pointer, len, len) instead of just (pointer, len) Still immutable String, can't be reallocated to attempt dropping rodata memory
- 5 more replies
-
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.
Right after I started using Rust and got used to that method someone made it so that to_string, to_owned, etc. are equivalent so I guess it really doesn't matter. lol