Skip to content
This repository was archived by the owner on May 28, 2022. It is now read-only.

Commit 95ea66a

Browse files
committed
xdispatch: Eliminate the compiler warning "tyvar_behind_raw_pointer"
Details about the warning: rust-lang/rust#46906 Fixes #8.
1 parent 156f1bb commit 95ea66a

File tree

1 file changed

+1
-1
lines changed
  • NGSEngine/src/xdispatch/src

1 file changed

+1
-1
lines changed

NGSEngine/src/xdispatch/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ impl Queue {
332332
let src_ptr = src.as_ptr();
333333

334334
let mut dest = Vec::with_capacity(len);
335-
let dest_ptr = dest.as_mut_ptr();
335+
let dest_ptr: *mut U = dest.as_mut_ptr();
336336

337337
let work = move |i| unsafe {
338338
let result = work(ptr::read(src_ptr.offset(i as isize)));

0 commit comments

Comments
 (0)