1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-28 07:55:03 +03:00

termwiz: fix test build when image feature is disabled

This commit is contained in:
Wez Furlong 2021-08-08 16:43:10 -07:00
parent 4427ca3a1c
commit 3c5916d760

View File

@ -307,6 +307,11 @@ impl ImageDataType {
}
}
#[cfg(not(feature = "use_image"))]
pub fn decode(self) -> Self {
self
}
#[cfg(feature = "use_image")]
fn decode_frames(img_frames: Vec<image::Frame>) -> Self {
let mut width = 0;