Skip to content

Commit 5a5845d

Browse files
committed
Rollup merge of #23684 - tamird:ios-fallout, r=alexcrichton
r? @aturon cc @alexcrichton
2 parents 5535767 + eb5ed10 commit 5a5845d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sys/unix/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ pub fn args() -> Args {
345345
let utf_c_str: *const libc::c_char =
346346
mem::transmute(objc_msgSend(tmp, utf8_sel));
347347
let bytes = CStr::from_ptr(utf_c_str).to_bytes();
348-
res.push(OsString::from_str(str::from_utf8(bytes).unwrap()))
348+
res.push(OsString::from(str::from_utf8(bytes).unwrap()))
349349
}
350350
}
351351

0 commit comments

Comments
 (0)