diff options
| author | Adolfo OchagavĂa <aochagavia92@gmail.com> | 2014-07-10 17:53:51 +0200 |
|---|---|---|
| committer | Adolfo OchagavĂa <aochagavia92@gmail.com> | 2014-07-15 19:55:20 +0200 |
| commit | 1900abdd9b5b5eef5d90b43555c1ae06743e50db (patch) | |
| tree | 6fa636e75b66c173547c770a89aad44246e85191 /src/libstd | |
| parent | 6ac4fc7fc2fb48599dbba55fcea5cfc1e6cd4602 (diff) | |
| download | rust-1900abdd9b5b5eef5d90b43555c1ae06743e50db.tar.gz rust-1900abdd9b5b5eef5d90b43555c1ae06743e50db.zip | |
Deprecate `str::from_utf16_lossy`
Use `String::from_utf16_lossy` instead. [breaking-change]
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/os.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/os.rs b/src/libstd/os.rs index a221dd5b376..9537d5daca0 100644 --- a/src/libstd/os.rs +++ b/src/libstd/os.rs @@ -266,7 +266,7 @@ pub fn env_as_bytes() -> Vec<(Vec<u8>,Vec<u8>)> { let p = &*ch.offset(i); let len = ptr::position(p, |c| *c == 0); raw::buf_as_slice(p, len, |s| { - result.push(str::from_utf16_lossy(s).into_bytes()); + result.push(String::from_utf16_lossy(s).into_bytes()); }); i += len as int + 1; } |
