Fix image feature name in glow and iced

This commit is contained in:
Héctor Ramón Jiménez 2021-02-13 16:05:51 +01:00
parent 8f126c212b
commit e1b1227f0c
2 changed files with 2 additions and 2 deletions

View File

@ -208,7 +208,7 @@ impl backend::Text for Backend {
}
}
#[cfg(feature = "image_rs")]
#[cfg(feature = "image")]
impl backend::Image for Backend {
fn dimensions(&self, _handle: &iced_native::image::Handle) -> (u32, u32) {
(50, 50)

View File

@ -34,7 +34,7 @@ mod platform {
)]
pub use crate::renderer::widget::qr_code;
#[cfg_attr(docsrs, doc(cfg(feature = "image_rs")))]
#[cfg_attr(docsrs, doc(cfg(feature = "image")))]
pub mod image {
//! Display images in your user interface.
pub use crate::runtime::image::viewer;