Remove unneeded code now that image libraries use Vec<T>.

This commit is contained in:
Glenn Watson 2014-05-10 06:15:56 +10:00
parent 1477652295
commit 45930b36ae
2 changed files with 2 additions and 2 deletions

View file

@ -757,7 +757,7 @@ impl IOCompositor {
width: width as u32,
height: height as u32,
color_type: png::RGB8,
pixels: pixels.move_iter().collect(),
pixels: pixels,
};
let res = png::store_png(&img, &path);
assert!(res.is_ok());

View file

@ -168,7 +168,7 @@ fn check_reftest(reftest: Reftest) {
width: left.width,
height: left.height,
color_type: png::RGBA8,
pixels: pixels.move_iter().collect(),
pixels: pixels,
};
let res = png::store_png(&img, &output);
assert!(res.is_ok());