diff options
Diffstat (limited to 'evc/src/frame.rs')
-rw-r--r-- | evc/src/frame.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/evc/src/frame.rs b/evc/src/frame.rs index 1269bf2..c36abf3 100644 --- a/evc/src/frame.rs +++ b/evc/src/frame.rs @@ -22,7 +22,7 @@ impl Frame { .collect(), } } - pub fn read(source: &mut impl Source, size: (usize, usize)) -> io::Result<Self> { + pub fn read(source: &mut impl Source, size: (usize, usize)) -> anyhow::Result<Self> { let mut frame = Frame::new(size); for y in 0..size.1 { for x in 0..size.0 { @@ -32,7 +32,7 @@ impl Frame { } Ok(frame) } - pub fn write(&self, sink: &mut impl Sink) -> io::Result<()> { + pub fn write(&self, sink: &mut impl Sink) -> anyhow::Result<()> { for y in 0..self.size.1 { for x in 0..self.size.0 { sink.put(self[(x, y)])?; |