projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
266bedb
)
work
author
Ben Pfaff
<blp@cs.stanford.edu>
Thu, 16 Oct 2025 14:35:04 +0000
(07:35 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Thu, 16 Oct 2025 14:35:04 +0000
(07:35 -0700)
rust/pspp/src/output/spv/light.rs
patch
|
blob
|
history
diff --git
a/rust/pspp/src/output/spv/light.rs
b/rust/pspp/src/output/spv/light.rs
index 4f36e639c0a770e6b446540ada8fed8bc5fd849f..22442b1cd13634f2707567bcaf891d4adf2ed044 100644
(file)
--- a/
rust/pspp/src/output/spv/light.rs
+++ b/
rust/pspp/src/output/spv/light.rs
@@
-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)
+ }
}
}