From 5002d0df81f74418665e4e99179ba56d8e78cbe1 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 6 Dec 2022 08:16:09 +0100 Subject: more codde --- evc/src/frame.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'evc/src/frame.rs') 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 { + pub fn read(source: &mut impl Source, size: (usize, usize)) -> anyhow::Result { 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)])?; -- cgit v1.2.3-70-g09d2