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,
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()
#[serde(rename = "@stagger")]
stagger: Option<bool>,
- gridline: Gridline,
+ gridline: Option<Gridline>,
}
#[derive(Deserialize, Debug)]
fn text(&self) -> &[Text] {
match &self.child {
LabelChild::Text(texts) => texts.as_slice(),
- LabelChild::DescriptionGroup(description_group) => &[],
+ LabelChild::DescriptionGroup(_) => &[],
}
}