aboutsummaryrefslogtreecommitdiff
path: root/evc/src/block.rs
diff options
context:
space:
mode:
Diffstat (limited to 'evc/src/block.rs')
-rw-r--r--evc/src/block.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/evc/src/block.rs b/evc/src/block.rs
index 261882a..f58bcb3 100644
--- a/evc/src/block.rs
+++ b/evc/src/block.rs
@@ -17,7 +17,7 @@ pub enum BlockInner {
}
impl Block {
- pub fn write(&self, sink: &mut impl std::io::Write) -> std::io::Result<()> {
+ pub fn write(&self, sink: &mut impl std::io::Write) -> anyhow::Result<()> {
match &self.inner {
BlockInner::Literal(pixels) => {
sink.put(0u8)?;
@@ -35,7 +35,7 @@ impl Block {
Ok(())
}
- pub fn read(source: &mut impl std::io::Read, size: (usize, usize)) -> std::io::Result<Self> {
+ pub fn read(source: &mut impl std::io::Read, size: (usize, usize)) -> anyhow::Result<Self> {
let inner = match source.get::<u8>()? {
0 => BlockInner::Literal(source.get()?),
1 => BlockInner::Split(Box::new({