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 02e6a17f79601f51d308eac1ec6d994bf9a27e09
parent b91cecca4934523a6793cb159e8d7f8045aa5b34
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
    }