Skip to content

Commit eb5ed10

Browse files
committed
[iOS] Fallout from 8389253
1 parent 123a754 commit eb5ed10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sys/unix/os.rs

+1-1
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)