mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Remove unneeded code now that image libraries use Vec<T>.
This commit is contained in:
parent
1477652295
commit
45930b36ae
2 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue