diff options
author | Kyohei Uto <im@kyoheiu.dev> | 2022-11-19 06:54:29 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-19 06:54:29 +0900 |
commit | 9b6242fc27a5b49ca4986d7d06ad44ad2be0a1df (patch) | |
tree | 38f4d9c4b17108e80ee8fc86e6cbacf2d5c63a9e /src/layout.rs | |
parent | dbf632c790f678d6ee56efbf116acd8e684d012c (diff) | |
parent | d8da5ed19d5b7359abad4fa4c6933ee85cf32410 (diff) |
Merge pull request #146 from kyoheiu/developv2.1.0
v2.1.0
Diffstat (limited to 'src/layout.rs')
-rw-r--r-- | src/layout.rs | 6 |
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, |