diff --git a/src/dynimage.rs b/src/dynimage.rs index 4a49546e8d..0cf0f3ad69 100644 --- a/src/dynimage.rs +++ b/src/dynimage.rs @@ -411,7 +411,7 @@ fn transmute_vec(mut vec: Vec) -> Vec { let p = vec.as_mut_ptr(); unsafe { mem::forget(vec); - Vec::from_raw_parts(new_len, new_cap, mem::transmute(p)) + Vec::from_raw_parts(mem::transmute(p), new_len, new_cap) } }