work
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 4 Nov 2025 20:57:01 +0000 (12:57 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 4 Nov 2025 20:57:01 +0000 (12:57 -0800)
rust/pspp/src/output/pivot.rs
rust/pspp/src/output/spv/legacy_xml.rs

index e0f5277d0419bb00017c3fc28fc3793c2049eef8..197835b05d060183cba2e912ffdb8f7d2e9a13a2 100644 (file)
@@ -74,7 +74,7 @@ use tlo::parse_tlo;
 
 use crate::{
     calendar::date_time_to_pspp,
-    data::{ByteString, Datum, EncodedString, RawString},
+    data::{ByteString, Datum, EncodedString},
     format::{
         DATETIME40_0, Decimal, F8_2, F40, F40_2, F40_3, Format, PCT40_1,
         Settings as FormatSettings, Type, UncheckedFormat,
index 5042e47b8736b0f498cae0104490b077ee69badc..fd91c341e42cfe55b8a85dc473c3cf0f363e86dd 100644 (file)
@@ -1007,7 +1007,7 @@ struct Format {
 
 impl Format {
     fn decode(&self) -> crate::format::Format {
-        if let Some(base_format) = self.base_format {
+        if self.base_format.is_some() {
             SignificantDateTimeFormat::from(self).decode()
         } else {
             SignificantNumberFormat::from(self).decode()
@@ -2077,7 +2077,7 @@ struct MajorTicks {
     #[serde(rename = "@stagger")]
     stagger: Option<bool>,
 
-    gridline: Gridline,
+    gridline: Option<Gridline>,
 }
 
 #[derive(Deserialize, Debug)]
@@ -2110,7 +2110,7 @@ impl Label {
     fn text(&self) -> &[Text] {
         match &self.child {
             LabelChild::Text(texts) => texts.as_slice(),
-            LabelChild::DescriptionGroup(description_group) => &[],
+            LabelChild::DescriptionGroup(_) => &[],
         }
     }