Skip to content

Commit c76ef24

Browse files
committed
Fix compile error on WASM32
1 parent 3004d3d commit c76ef24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/element/image.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ use image::{DynamicImage, GenericImageView};
44
use super::{Drawable, PointCollection};
55
use plotters_backend::{BackendCoord, DrawingBackend, DrawingErrorKind};
66

7-
use plotters_bitmap::bitmap_pixel::PixelFormat;
7+
use plotters_bitmap::bitmap_pixel::{PixelFormat, RGBPixel};
88

99
#[cfg(all(not(target_arch = "wasm32"), feature = "image"))]
10-
use plotters_bitmap::bitmap_pixel::{BGRXPixel, RGBPixel};
10+
use plotters_bitmap::bitmap_pixel::{BGRXPixel};
1111

1212
use plotters_bitmap::BitMapBackend;
1313

0 commit comments

Comments
 (0)