update to image 0.20 (#683)

This commit is contained in:
Lucas Kent 2018-10-24 11:29:11 +11:00 committed by Francesca Plebani
parent 062bb0cef2
commit da1d479e55
4 changed files with 5 additions and 5 deletions

View file

@ -146,7 +146,7 @@ impl Icon {
/// Requires the `icon_loading` feature.
impl From<image::DynamicImage> for Icon {
fn from(image: image::DynamicImage) -> Self {
use image::{GenericImage, Pixel};
use image::{GenericImageView, Pixel};
let (width, height) = image.dimensions();
let mut rgba = Vec::with_capacity((width * height) as usize * PIXEL_SIZE);
for (_, _, pixel) in image.pixels() {