]> git.lizzy.rs Git - rust.git/commit
Call str::to_owned in String::from and uninline it
authorUlrik Sverdrup <bluss@users.noreply.github.com>
Thu, 10 Mar 2016 20:15:29 +0000 (21:15 +0100)
committerUlrik Sverdrup <bluss@users.noreply.github.com>
Sun, 13 Mar 2016 08:36:02 +0000 (09:36 +0100)
commitec39a76a3e8a96563845eca4eb77f3ba2a2090a9
tree10fc0d1b022ede0b316b7cbef7d1adf5730ccf40
parent3e05371c13f851a5af57a96a5e13c99537787314
Call str::to_owned in String::from and uninline it

String::from does not need to be inlined, it can be without it just like
str::to_owned and String::clone are.
src/libcollections/string.rs