mirror of
https://github.com/servo/servo.git
synced 2025-08-12 17:05:33 +01:00
Upgrade to rustc 1.39.0-nightly (f7af19c27 2019-08-15)
This commit is contained in:
parent
8672ab5447
commit
98e4a53b72
8 changed files with 64 additions and 55 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue