oops, one more Arc
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 11 Apr 2025 23:23:47 +0000 (16:23 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 11 Apr 2025 23:23:47 +0000 (16:23 -0700)
rust/pspp/src/output/pivot/mod.rs

index a41466af12763d7695a432773e40a5916672f436..0bba40dac7b295d39e24d854057eda7a0d34498c 100644 (file)
@@ -498,10 +498,7 @@ impl CategoryBuilder {
     fn build(self) -> Category {
         match self {
             Self::Group(group) => Category::Group(group.build(false)),
-            Self::Leaf { name, class } => {
-                let leaf = Arc::new(Leaf { name, class });
-                Category::Leaf(leaf)
-            }
+            Self::Leaf { name, class } => Category::Leaf(Leaf { name, class }),
         }
     }
 }
@@ -674,7 +671,7 @@ pub enum Class {
 #[derive(Clone, Debug)]
 pub enum Category {
     Group(Group),
-    Leaf(Arc<Leaf>),
+    Leaf(Leaf),
 }
 
 impl Category {