update to image 0.20 (#683)
This commit is contained in:
parent
062bb0cef2
commit
da1d479e55
4 changed files with 5 additions and 5 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue