diff options
| author | Tamir Duberstein <tamird@gmail.com> | 2015-03-24 18:48:14 -0700 |
|---|---|---|
| committer | Tamir Duberstein <tamird@gmail.com> | 2015-03-24 18:50:38 -0700 |
| commit | eb5ed1033096f000c8d02908d78fe5968562b0f5 (patch) | |
| tree | 0bd4b0d5cf86570e271a5fdf64488a876ffd0ac1 /src/libstd/sys | |
| parent | 123a754cb8356d0e78837dd4e58103ad801309ff (diff) | |
| download | rust-eb5ed1033096f000c8d02908d78fe5968562b0f5.tar.gz rust-eb5ed1033096f000c8d02908d78fe5968562b0f5.zip | |
[iOS] Fallout from 8389253
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/unix/os.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/unix/os.rs b/src/libstd/sys/unix/os.rs index 6c191689255..5699a60908b 100644 --- a/src/libstd/sys/unix/os.rs +++ b/src/libstd/sys/unix/os.rs @@ -345,7 +345,7 @@ pub fn args() -> Args { let utf_c_str: *const libc::c_char = mem::transmute(objc_msgSend(tmp, utf8_sel)); let bytes = CStr::from_ptr(utf_c_str).to_bytes(); - res.push(OsString::from_str(str::from_utf8(bytes).unwrap())) + res.push(OsString::from(str::from_utf8(bytes).unwrap())) } } |
