summaryrefslogtreecommitdiffstats
path: root/src/layout.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout.rs')
-rw-r--r--src/layout.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/layout.rs b/src/layout.rs
index cf4af93..7a11411 100644
--- a/src/layout.rs
+++ b/src/layout.rs
@@ -15,10 +15,6 @@ use syntect::util::{as_24_bit_terminal_escaped, split_at, LinesWithEndings};
/// cf: https://docs.rs/image/latest/src/image/image.rs.html#84-112
pub const MAX_SIZE_TO_PREVIEW: u64 = 1_000_000_000;
-pub const IMAGE_EXTENSION: [&str; 20] = [
- "avif", "jpg", "jpeg", "png", "gif", "webp", "tif", "tiff", "tga", "dds", "bmp", "ico", "hdr",
- "exr", "pbm", "pam", "ppm", "pgm", "ff", "farbfeld",
-];
pub const CHAFA_WARNING: &str =
"From v1.1.0, the image preview needs chafa. For more details, please see help by `:h` ";
@@ -57,7 +53,7 @@ pub enum PreviewType {
Binary,
}
-#[derive(Debug, PartialEq, Deserialize, Serialize, Clone, Copy)]
+#[derive(Debug, PartialEq, Eq, Deserialize, Serialize, Clone, Copy)]
pub enum Split {
Vertical,
Horizontal,