Skip to content

Commit f59f674

Browse files
committed
Add type annotation so pointer type is known
This was apparently tripping up the rust-lang/rust#46906 lint.
1 parent 154e506 commit f59f674

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ impl Queue {
311311
let len = src.len();
312312
let src_ptr = src.as_ptr();
313313

314-
let mut dest = Vec::with_capacity(len);
314+
let mut dest: Vec<U> = Vec::with_capacity(len);
315315
let dest_ptr = dest.as_mut_ptr();
316316

317317
let work = move |i| unsafe {

0 commit comments

Comments
 (0)