diff options
author | Genny <gen@nyble.dev> | 2021-09-24 03:42:12 -0500 |
---|---|---|
committer | Genny <gen@nyble.dev> | 2021-09-24 03:42:12 -0500 |
commit | a4c967c5bd132d2bf9f2b151ee2ca1f4aa05f4a4 (patch) | |
tree | 8ffb88c1e12992d37f9f9bb2f51d1f5cfbe65bbe /src/writer | |
parent | 9a3a341d4f278b8300d308cf7691cb031e17ac5a (diff) | |
download | gifed-a4c967c5bd132d2bf9f2b151ee2ca1f4aa05f4a4.tar.gz gifed-a4c967c5bd132d2bf9f2b151ee2ca1f4aa05f4a4.zip |
indicies takes slice of u8 now
Diffstat (limited to 'src/writer')
-rw-r--r-- | src/writer/imagebuilder.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/writer/imagebuilder.rs b/src/writer/imagebuilder.rs index 1486f16..42c94f8 100644 --- a/src/writer/imagebuilder.rs +++ b/src/writer/imagebuilder.rs @@ -97,8 +97,8 @@ impl ImageBuilder { } } - pub fn indicies(mut self, indicies: Vec<u8>) -> Self { - self.indicies = indicies; + pub fn indicies(mut self, indicies: &[u8]) -> Self { + self.indicies = indicies.to_vec(); self } |