aboutsummaryrefslogtreecommitdiffstats
path: root/components/net_traits
diff options
context:
space:
mode:
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)]