From 07ada348558204e1736e29056eba6d73b2084cc2 Mon Sep 17 00:00:00 2001 From: Philipp A Date: Mon, 29 Oct 2018 15:12:55 +0100 Subject: Rust 2018 --- src/document_tree/element_categories.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/document_tree') diff --git a/src/document_tree/element_categories.rs b/src/document_tree/element_categories.rs index 7fcce82..bc2e347 100644 --- a/src/document_tree/element_categories.rs +++ b/src/document_tree/element_categories.rs @@ -3,8 +3,8 @@ use std::fmt::{self,Debug,Formatter}; use super::elements::*; pub trait HasChildren { - fn with_children(Vec) -> Self; - fn children(& self) -> &Vec; + fn with_children(children: Vec) -> Self; + fn children(&self) -> &Vec; fn children_mut(&mut self) -> &mut Vec; fn append_child>(&mut self, child: R) { self.children_mut().push(child.into()); -- cgit v1.2.3