about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-03-25 17:12:13 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-03-25 19:44:08 +0530
commit5a5845dc010401dccb14954239ea60a2e27e8406 (patch)
tree744ac4f659a1914055f8d8692bb54a420bf1a373
parent55357672281a5fb68106c595303e5b4e071821ff (diff)
parenteb5ed1033096f000c8d02908d78fe5968562b0f5 (diff)
downloadrust-5a5845dc010401dccb14954239ea60a2e27e8406.tar.gz
rust-5a5845dc010401dccb14954239ea60a2e27e8406.zip
Rollup merge of #23684 - tamird:ios-fallout, r=alexcrichton
r? @aturon cc @alexcrichton
-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()))
         }
     }