about summary refs log tree commit diff
path: root/src/gif.rs
diff options
context:
space:
mode:
authorGenny <gen@nyble.dev>2021-09-24 03:42:12 -0500
committerGenny <gen@nyble.dev>2021-09-24 03:42:12 -0500
commita4c967c5bd132d2bf9f2b151ee2ca1f4aa05f4a4 (patch)
tree8ffb88c1e12992d37f9f9bb2f51d1f5cfbe65bbe /src/gif.rs
parent9a3a341d4f278b8300d308cf7691cb031e17ac5a (diff)
downloadgifed-a4c967c5bd132d2bf9f2b151ee2ca1f4aa05f4a4.tar.gz
gifed-a4c967c5bd132d2bf9f2b151ee2ca1f4aa05f4a4.zip
indicies takes slice of u8 now
Diffstat (limited to 'src/gif.rs')
-rw-r--r--src/gif.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gif.rs b/src/gif.rs
index 837de3a..36e64dd 100644
--- a/src/gif.rs
+++ b/src/gif.rs
@@ -148,10 +148,10 @@ pub mod gif {
             .image(
                 ImageBuilder::new(4, 4)
                     .palette(colortable.try_into().unwrap())
-                    .indicies(indicies.clone()),
+                    .indicies(&indicies),
             )
             .unwrap()
-            .image(ImageBuilder::new(4, 4).indicies(indicies))
+            .image(ImageBuilder::new(4, 4).indicies(&indicies))
             .unwrap();
 
         let bytes = actual.build().to_vec();
@@ -175,12 +175,12 @@ pub mod gif {
             .image(
                 ImageBuilder::new(4, 4)
                     .palette(colortable.try_into().unwrap())
-                    .indicies(indicies.clone())
+                    .indicies(&indicies)
                     .disposal_method(DisposalMethod::RestoreBackground)
                     .delay(64),
             )
             .unwrap()
-            .image(ImageBuilder::new(4, 4).indicies(indicies))
+            .image(ImageBuilder::new(4, 4).indicies(&indicies))
             .unwrap()
             .build()
             .to_vec();