Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
radicle-term: Optimize impl of VStack::children()
Matthias Beyer committed 7 months ago
commit 6769ca72ffb80840ab0caec80d6a02a53004a8f0
parent c7e0428d84d084a008eef62e7ccccba4c010656a
1 file changed +3 -4
modified crates/radicle-term/src/vstack.rs
@@ -77,10 +77,9 @@ impl<'a> VStack<'a> {
        I: IntoIterator<Item = Box<dyn Element>>,
    {
        let mut vstack = self;
-

-
        for child in children.into_iter() {
-
            vstack = vstack.child(child);
-
        }
+
        vstack
+
            .rows
+
            .extend(children.into_iter().map(|e| Row::Element(Box::new(e))));
        vstack
    }