Skip to content

Commit e5626e9

Browse files
t-botzmattico
authored andcommitted
Fix tyvar_behind_raw_pointer warning
See rust-lang/rust#46906
1 parent f6dbeb1 commit e5626e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustup-utils/src/raw.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ fn symlink_junction_inner(target: &Path, junction: &Path) -> io::Result<()> {
219219
let mut data = [0u8; MAXIMUM_REPARSE_DATA_BUFFER_SIZE];
220220
let db = data.as_mut_ptr()
221221
as *mut REPARSE_MOUNTPOINT_DATA_BUFFER;
222-
let buf = &mut (*db).ReparseTarget as *mut _;
222+
let buf = &mut (*db).ReparseTarget as *mut WCHAR;
223223
let mut i = 0;
224224
// FIXME: this conversion is very hacky
225225
let v = br"\??\";

0 commit comments

Comments
 (0)