Update Rust nightly to 1.19.0-nightly (6165203c4 2017-06-03)

This commit is contained in:
Anthony Ramine 2017-06-03 13:27:19 +02:00
parent 985050d364
commit f081380dc0
6 changed files with 9 additions and 16 deletions

View file

@ -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];

View file

@ -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)]