diff options
| author | bors <bors@rust-lang.org> | 2014-09-17 01:16:14 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-09-17 01:16:14 +0000 |
| commit | b75b0f79235c919b3ab959fb79247d2997bd63e0 (patch) | |
| tree | f0eec84856b18dda238f45616093fa0f4c0a4b2b /src/libsyntax/util | |
| parent | 0e784e16840e8a0c623cc6166de26da9334db3d6 (diff) | |
| parent | bcad3a581663e84694e99300349341822b8e8f6e (diff) | |
| download | rust-b75b0f79235c919b3ab959fb79247d2997bd63e0.tar.gz rust-b75b0f79235c919b3ab959fb79247d2997bd63e0.zip | |
auto merge of #17223 : retep998/rust/into_string, r=huonw
Replaces some usage of `.to_string()` with `.into_string()`
Diffstat (limited to 'src/libsyntax/util')
| -rw-r--r-- | src/libsyntax/util/interner.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/util/interner.rs b/src/libsyntax/util/interner.rs index 9ad3157fe6a..c22bdde74a4 100644 --- a/src/libsyntax/util/interner.rs +++ b/src/libsyntax/util/interner.rs @@ -120,7 +120,7 @@ impl fmt::Show for RcStr { impl RcStr { pub fn new(string: &str) -> RcStr { RcStr { - string: Rc::new(string.to_string()), + string: Rc::new(string.into_string()), } } } |
