diff options
-rw-r--r-- | gifed/Cargo.toml | 6 | ||||
-rw-r--r-- | gifed/src/gif_builder.rs | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gifed/Cargo.toml b/gifed/Cargo.toml index 9c9743c..ae9f5a8 100644 --- a/gifed/Cargo.toml +++ b/gifed/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "gifed" version = "0.3.0" -authors = ["gennyble <gen@nyble.dev>"] -edition = "2018" +authors = ["gennyble <gen@nyble.dev>", "novedevo <devon@nove.dev>"] +edition = "2021" license = "ISC" description = "Gif encoding and decoding with fine control" repository = "https://github.com/genuinebyte/gifed" @@ -10,7 +10,7 @@ repository = "https://github.com/genuinebyte/gifed" [dependencies] bitvec = "1.0.1" colorsquash = { git = "https://github.com/novedevo/colorsquash", version = "0.2.0", optional = true } -rgb = {version="0.8.37", optional=true} +rgb = {version="0.8", optional = true} weezl = "0.1.5" [features] diff --git a/gifed/src/gif_builder.rs b/gifed/src/gif_builder.rs index 323e63c..a6f9f95 100644 --- a/gifed/src/gif_builder.rs +++ b/gifed/src/gif_builder.rs @@ -5,7 +5,7 @@ use crate::{ }; use colorsquash::Squasher; -use rgb::{ComponentBytes, RGB8}; +use rgb::RGB8; use std::convert::TryFrom; @@ -106,7 +106,7 @@ impl From<Vec<Vec<RGB8>>> for Frame { let squasher = Squasher::new(255u8, flat.as_slice()); let mut image_indices = vec![0; flat.len()]; - squasher.map_unsafe(flat.as_bytes(), &mut image_indices); + squasher.map_unsafe(flat.as_slice(), &mut image_indices); let palette = Palette::try_from(squasher.palette_bytes().as_slice()).unwrap(); Self { image_indices, |