work rust
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 19 Dec 2025 20:54:28 +0000 (12:54 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 19 Dec 2025 20:54:28 +0000 (12:54 -0800)
rust/pspp/src/output/drivers/cairo/driver.rs

index bbe75c40b353ab01492487c6fccfa0bcf0e5725c..14cf853d9acd22c86b180134729c60d9cefdcdae 100644 (file)
@@ -140,7 +140,7 @@ impl Driver for CairoDriver {
         });
         let mut cursor = ItemCursor::new(item.clone());
         while let Some(item) = cursor.cur() {
-            if let Details::Text(text) = &item.details
+            if let Some(text) = item.details.as_text()
                 && text.type_ == TextType::PageTitle
             {
                 self.title = text.content.display(()).to_string();