about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDevon Sawatsky <novedevo@gmail.com>2023-12-31 17:23:52 -0800
committerDevon Sawatsky <novedevo@gmail.com>2023-12-31 17:23:52 -0800
commit76b719174d97dca088b1d647ce62c0e7bc126cd4 (patch)
tree31fb8f676066daec47d42d1241789e65002b8803
parentac3d9ffd2a913da2f578cc0dd908962ce23246bc (diff)
downloadgifed-76b719174d97dca088b1d647ce62c0e7bc126cd4.tar.gz
gifed-76b719174d97dca088b1d647ce62c0e7bc126cd4.zip
fix a bug that should never have gotten past rust-analyzer
-rw-r--r--gifed/Cargo.toml6
-rw-r--r--gifed/src/gif_builder.rs4
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,