None that I'm aware of. I prefer "".to_owned() over String::from("") or "".to_string() to avoid the confusion of "why are you converting a string to a string?" that I've seen in some newbie Rust threads.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Is there any difference between
and
?
None that I'm aware of. I prefer
"".to_owned()
overString::from("")
or"".to_string()
to avoid the confusion of "why are you converting a string to a string?" that I've seen in some newbie Rust threads.