Upgrade to rustc 1.39.0-nightly (f7af19c27 2019-08-15)

This commit is contained in:
Simon Sapin 2019-08-16 13:53:01 +02:00
parent 8672ab5447
commit 98e4a53b72
8 changed files with 64 additions and 55 deletions

View file

@ -671,7 +671,7 @@ fn winit_phase_to_touch_event_type(phase: TouchPhase) -> TouchEventType {
fn load_icon(icon_bytes: &[u8]) -> Icon {
let (icon_rgba, icon_width, icon_height) = {
use image::{GenericImageView, Pixel};
let image = image::load_from_memory(icon_bytes).expect("Failed to load icon");;
let image = image::load_from_memory(icon_bytes).expect("Failed to load icon");
let (width, height) = image.dimensions();
let mut rgba = Vec::with_capacity((width * height) as usize * 4);
for (_, _, pixel) in image.pixels() {