From: Ben Pfaff Date: Fri, 11 Apr 2025 23:23:47 +0000 (-0700) Subject: oops, one more Arc X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a50bf1c878bb4ab3b06345b52e47f3606f74514;p=pspp oops, one more Arc --- 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 {