Skip to content

Commit

Permalink
Fix rval of os_string_from_ptr
Browse files Browse the repository at this point in the history
A trait cannot be returned, but only the corresponding object.
  • Loading branch information
Byron committed Jun 25, 2016
1 parent 8f4b7ad commit 6ad18eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/sys/windows/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ pub struct Args {
cur: *mut *mut u16,
}

unsafe fn os_string_from_ptr(ptr: *mut u16) -> OsStringExt {
unsafe fn os_string_from_ptr(ptr: *mut u16) -> OsString {
let mut len = 0;
while *ptr.offset(len) != 0 { len += 1; }

Expand Down

0 comments on commit 6ad18eb

Please sign in to comment.