aboutsummaryrefslogtreecommitdiffstats
path: root/components/net_traits
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-09 11:12:42 +0200
commit4c8a0f0626c8fc4f97731dd6769b1202b06d9cca (patch)
treed9db0724c21a8a39b28d9745ec048da451c32948 /components/net_traits
parent243967298312efa892bed42c421e74f221a99ddd (diff)
downloadservo-4c8a0f0626c8fc4f97731dd6769b1202b06d9cca.tar.gz
servo-4c8a0f0626c8fc4f97731dd6769b1202b06d9cca.zip
Update Rust nightly to 1.19.0-nightly (2416e222e 2017-06-09)
Diffstat (limited to 'components/net_traits')
-rw-r--r--components/net_traits/image/base.rs2
-rw-r--r--components/net_traits/lib.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/components/net_traits/image/base.rs b/components/net_traits/image/base.rs
index cae3cce8dde..a52ed0e717b 100644
--- a/components/net_traits/image/base.rs
+++ b/components/net_traits/image/base.rs
@@ -42,7 +42,7 @@ pub struct ImageMetadata {
fn byte_swap_and_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 r = data[i + 2];
let g = data[i + 1];
let b = data[i + 0];
diff --git a/components/net_traits/lib.rs b/components/net_traits/lib.rs
index e1403386d54..42808737db8 100644
--- a/components/net_traits/lib.rs
+++ b/components/net_traits/lib.rs
@@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#![feature(box_syntax)]
-#![feature(step_by)]
+#![feature(iterator_step_by)]
#![deny(unsafe_code)]