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/pixel.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'evc/src/pixel.rs') diff --git a/evc/src/pixel.rs b/evc/src/pixel.rs index 442c1b5..aaf8d83 100644 --- a/evc/src/pixel.rs +++ b/evc/src/pixel.rs @@ -8,11 +8,11 @@ pub struct Pixel { } impl Ser for Pixel { - fn write(&self, sink: &mut impl std::io::Write) -> std::io::Result<()> { + fn write(&self, sink: &mut impl std::io::Write) -> anyhow::Result<()> { sink.put((self.r, self.g, self.b)) } - fn read(source: &mut impl std::io::Read) -> std::io::Result { + fn read(source: &mut impl std::io::Read) -> anyhow::Result { let (r, g, b) = source.get()?; Ok(Self { r, g, b }) } -- cgit v1.2.3-70-g09d2