summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@gmail.com>2015-03-24 18:48:14 -0700
committerTamir Duberstein <tamird@gmail.com>2015-03-24 18:50:38 -0700
commiteb5ed1033096f000c8d02908d78fe5968562b0f5 (patch)
tree0bd4b0d5cf86570e271a5fdf64488a876ffd0ac1 /src/libstd/sys
parent123a754cb8356d0e78837dd4e58103ad801309ff (diff)
downloadrust-eb5ed1033096f000c8d02908d78fe5968562b0f5.tar.gz
rust-eb5ed1033096f000c8d02908d78fe5968562b0f5.zip
[iOS] Fallout from 8389253
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/unix/os.rs2
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()))
         }
     }