Skip to content

Commit

Permalink
Merge pull request #123 from bvssvni/master
Browse files Browse the repository at this point in the history
Upgraded to latest Rust
  • Loading branch information
bvssvni committed Oct 28, 2014
2 parents 9341e49 + c96c50e commit 80a982e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dynimage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ fn transmute_vec<T: Send + color::SafeToTransmute>(mut vec: Vec<u8>) -> Vec<T> {
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)
}
}

Expand Down

0 comments on commit 80a982e

Please sign in to comment.