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 8 months ago
commit 47f44e5b01ae477dc40e73afa5c7934e9ef06c37
parent 80841c4852a3a9ef226bc6e8e875cbade2c6176e
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
    }