]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #59825 - jsgf:from-ref-string, r=sfackler
authorMazdak Farrokhzad <twingoow@gmail.com>
Thu, 16 May 2019 08:43:24 +0000 (10:43 +0200)
committerGitHub <noreply@github.com>
Thu, 16 May 2019 08:43:24 +0000 (10:43 +0200)
commitf08c5bbc850a073cdb60a6bcf29a5052b830b317
tree57099769db283af19aa821e5f455a5d2d18fc0bf
parent024c25dc7941795b84d76b6371527f31c361a329
parent08b0aca05e3709766fd7e0e01ec56a8511e4c46b
Rollup merge of #59825 - jsgf:from-ref-string, r=sfackler

string: implement From<&String> for String

Allow Strings to be created from borrowed Strings. This is mostly
to make things like passing `&String` to an `impl Into<String>`
parameter frictionless.

Fixes #59827.
src/liballoc/string.rs