From 200f8064e1b1b96acc7d4a6f0f8321b2da5c2830 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 4 Jan 2023 22:48:02 +0100 Subject: rename thing --- evc/src/block.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'evc/src/block.rs') diff --git a/evc/src/block.rs b/evc/src/block.rs index 69cc460..d0f940b 100644 --- a/evc/src/block.rs +++ b/evc/src/block.rs @@ -59,7 +59,8 @@ impl Block { } pub fn read(source: &mut impl std::io::Read, size: Vec2) -> anyhow::Result { - Ok(match source.get::()? { + let variant = source.get::()?; + Ok(match variant { 0 => Block::Literal(Vec::read_const_size(source, size.area() as usize)?), 1 => Block::CompressedLiteral(Vec::read(source)?), 2 => Block::Split(Box::new({ -- cgit v1.2.3-70-g09d2