From: Ben Pfaff Date: Sun, 3 Aug 2025 15:32:48 +0000 (-0700) Subject: cleanup X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f54dedaacb3a32797693ece1a408845da075bd1;p=pspp cleanup --- diff --git a/rust/pspp/src/sys/sack.rs b/rust/pspp/src/sys/sack.rs index ab29ee837c..b23d0d83ea 100644 --- a/rust/pspp/src/sys/sack.rs +++ b/rust/pspp/src/sys/sack.rs @@ -577,7 +577,6 @@ mod test { use crate::sys::sack::sack; use anyhow::Result; use binrw::Endian; - use hexplay::HexView; #[test] fn basic_sack() -> Result<()> { @@ -593,8 +592,7 @@ mod test { "PSPP synthetic test file: "; i8 244; i8 245; i8 246; i8 248; s34 ""; i8 0 *3; "#; - let output = sack(input, None, Endian::Big)?; - HexView::new(&output).print()?; + sack(input, None, Endian::Big)?; Ok(()) } @@ -678,8 +676,7 @@ DATA: s16 "stuvwxyzAB"; s16 "CDEFGHIJKLM"; DATA_END: "#; - let output = sack(input, None, Endian::Big)?; - HexView::new(&output).print()?; + sack(input, None, Endian::Big)?; Ok(()) } } diff --git a/rust/pspp/src/sys/write.rs b/rust/pspp/src/sys/write.rs index 193f17769c..b2a8da96b5 100644 --- a/rust/pspp/src/sys/write.rs +++ b/rust/pspp/src/sys/write.rs @@ -1317,7 +1317,7 @@ mod tests { .collect(), ), ]; - for variables in variables.iter().combinations_with_replacement(4) { + for variables in variables.iter().combinations_with_replacement(3) { let mut dictionary = Dictionary::new(UTF_8); for (index, (width, _)) in variables.iter().enumerate() { dictionary