diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2017-06-03 13:27:19 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2017-06-09 11:12:42 +0200 |
commit | 4c8a0f0626c8fc4f97731dd6769b1202b06d9cca (patch) | |
tree | d9db0724c21a8a39b28d9745ec048da451c32948 /components/net | |
parent | 243967298312efa892bed42c421e74f221a99ddd (diff) | |
download | servo-4c8a0f0626c8fc4f97731dd6769b1202b06d9cca.tar.gz servo-4c8a0f0626c8fc4f97731dd6769b1202b06d9cca.zip |
Update Rust nightly to 1.19.0-nightly (2416e222e 2017-06-09)
Diffstat (limited to 'components/net')
-rw-r--r-- | components/net/image_cache.rs | 2 | ||||
-rw-r--r-- | components/net/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/components/net/image_cache.rs b/components/net/image_cache.rs index d0c31eb23b5..866925cf99a 100644 --- a/components/net/image_cache.rs +++ b/components/net/image_cache.rs @@ -107,7 +107,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; diff --git a/components/net/lib.rs b/components/net/lib.rs index 8f15def3948..f96a6fbf2c0 100644 --- a/components/net/lib.rs +++ b/components/net/lib.rs @@ -4,7 +4,7 @@ #![deny(unsafe_code)] #![feature(box_syntax)] -#![feature(step_by)] +#![feature(iterator_step_by)] extern crate base64; extern crate brotli; |