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

Commit

Permalink
xdispatch: Eliminate the compiler warning "tyvar_behind_raw_pointer"
Browse files Browse the repository at this point in the history
Details about the warning: rust-lang/rust#46906

Fixes #8.
  • Loading branch information
yvt committed Mar 15, 2018
1 parent 156f1bb commit 95ea66a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NGSEngine/src/xdispatch/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ impl Queue {
let src_ptr = src.as_ptr();

let mut dest = Vec::with_capacity(len);
let dest_ptr = dest.as_mut_ptr();
let dest_ptr: *mut U = dest.as_mut_ptr();

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

0 comments on commit 95ea66a

Please sign in to comment.