Skip to content

Commit

Permalink
fix: image impls
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyko committed Apr 17, 2024
1 parent eb68b5b commit 7525f65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gif.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::io::Read;
use std::io::{BufRead, Seek};

use image::{codecs::gif::GifDecoder, AnimationDecoder};

Expand Down Expand Up @@ -28,7 +28,7 @@ pub struct GifParser<'a> {
}

impl<'a> GifParser<'a> {
pub fn new<R: Read + 'a>(gif: GifDecoder<R>, model: &'a Model) -> Self {
pub fn new<R: BufRead + Seek + 'a>(gif: GifDecoder<R>, model: &'a Model) -> Self {
let frames = gif.into_frames();

Self { frames, model }
Expand Down

0 comments on commit 7525f65

Please sign in to comment.