mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Auto merge of #8800 - servo:warnings, r=metajack
Fix warnings Fixing unused attributes warnings required updating serde_macros which required updating to rustc 1.6.0-nightly (a2866e387 2015-11-30) which required updating some other dependencies. Fix #8709. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8800) <!-- Reviewable:end -->
This commit is contained in:
commit
32b90cdb6f
11 changed files with 121 additions and 122 deletions
|
@ -694,7 +694,7 @@ fn crop_image(image_data: Vec<u8>,
|
|||
|
||||
let mut new_image_data = Vec::new();
|
||||
let mut src = (crop_rect.origin.y * stride + crop_rect.origin.x * 4) as usize;
|
||||
for _ in (0..crop_rect.size.height) {
|
||||
for _ in 0..crop_rect.size.height {
|
||||
let row = &image_data[src .. src + (4 * crop_rect.size.width) as usize];
|
||||
new_image_data.push_all(row);
|
||||
src += stride as usize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue