aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/image_cache.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2017-06-03 13:27:19 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2017-06-03 13:35:55 +0200
commitf081380dc03dba9664877df2829097f32c40694a (patch)
tree465712fd911e26672e1a706b0e86e31d14284c54 /components/net/image_cache.rs
parent985050d3645382d5c2cc6bd6819ab05f9b843331 (diff)
downloadservo-f081380dc03dba9664877df2829097f32c40694a.tar.gz
servo-f081380dc03dba9664877df2829097f32c40694a.zip
Update Rust nightly to 1.19.0-nightly (6165203c4 2017-06-03)
Diffstat (limited to 'components/net/image_cache.rs')
-rw-r--r--components/net/image_cache.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/net/image_cache.rs b/components/net/image_cache.rs
index b8467e5a461..ebf31d2f5a1 100644
--- a/components/net/image_cache.rs
+++ b/components/net/image_cache.rs
@@ -99,7 +99,7 @@ fn is_image_opaque(format: webrender_traits::ImageFormat, bytes: &[u8]) -> bool
fn premultiply(data: &mut [u8]) {
let length = data.len();
- for i in (0..length).step_by(4) {
+ for i in Iterator::step_by(0..length, 4) {
let b = data[i + 0] as u32;
let g = data[i + 1] as u32;
let r = data[i + 2] as u32;