Skip to content

Commit

Permalink
Add type annotation so pointer type is known
Browse files Browse the repository at this point in the history
This was apparently tripping up the rust-lang/rust#46906 lint.
  • Loading branch information
SSheldon committed Aug 5, 2018
1 parent 154e506 commit f59f674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ impl Queue {
let len = src.len();
let src_ptr = src.as_ptr();

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

let work = move |i| unsafe {
Expand Down

0 comments on commit f59f674

Please sign in to comment.