diff --git a/crates/radicle-term/src/vstack.rs b/crates/radicle-term/src/vstack.rs index 43d252ae..e370a28b 100644 --- a/crates/radicle-term/src/vstack.rs +++ b/crates/radicle-term/src/vstack.rs @@ -72,15 +72,13 @@ impl<'a> VStack<'a> { } /// Add multiple elements to the stack. - pub fn children(self, children: I) -> Self + pub fn children(mut self, children: I) -> Self where I: IntoIterator>, { - let mut vstack = self; - vstack - .rows + self.rows .extend(children.into_iter().map(|e| Row::Element(Box::new(e)))); - vstack + self } /// Merge with another `VStack`.