From 4a50bf1c878bb4ab3b06345b52e47f3606f74514 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 11 Apr 2025 16:23:47 -0700 Subject: [PATCH] oops, one more Arc --- rust/pspp/src/output/pivot/mod.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/rust/pspp/src/output/pivot/mod.rs b/rust/pspp/src/output/pivot/mod.rs index a41466af12..0bba40dac7 100644 --- a/rust/pspp/src/output/pivot/mod.rs +++ b/rust/pspp/src/output/pivot/mod.rs @@ -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), } impl Category { -- 2.30.2