From 249904f12c2442e1ace4b95845a61863dbf3979e Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 16 Oct 2025 07:35:04 -0700 Subject: [PATCH] work --- rust/pspp/src/output/spv/light.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rust/pspp/src/output/spv/light.rs b/rust/pspp/src/output/spv/light.rs index 4f36e639c0..22442b1cd1 100644 --- a/rust/pspp/src/output/spv/light.rs +++ b/rust/pspp/src/output/spv/light.rs @@ -934,9 +934,10 @@ fn parse_show() -> BinResult> { 1 => Ok(Some(Show::Value)), 2 => Ok(Some(Show::Label)), 3 => Ok(Some(Show::Both)), - _ => Err(binrw::Error::NoVariantMatch { - pos: reader.stream_position()? - 1, - }), + _ => { + // XXX warn about invalid value + Ok(None) + } } } -- 2.30.2