projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
477afc0
)
oops, one more Arc
author
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 11 Apr 2025 23:23:47 +0000
(16:23 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 11 Apr 2025 23:23:47 +0000
(16:23 -0700)
rust/pspp/src/output/pivot/mod.rs
patch
|
blob
|
history
diff --git
a/rust/pspp/src/output/pivot/mod.rs
b/rust/pspp/src/output/pivot/mod.rs
index a41466af12763d7695a432773e40a5916672f436..0bba40dac7b295d39e24d854057eda7a0d34498c 100644
(file)
--- 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(
Leaf
),
}
impl Category {