work
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 16 Oct 2025 14:35:04 +0000 (07:35 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 16 Oct 2025 14:35:04 +0000 (07:35 -0700)
rust/pspp/src/output/spv/light.rs

index 4f36e639c0a770e6b446540ada8fed8bc5fd849f..22442b1cd13634f2707567bcaf891d4adf2ed044 100644 (file)
@@ -934,9 +934,10 @@ fn parse_show() -> BinResult<Option<Show>> {
         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)
+        }
     }
 }