aboutsummaryrefslogtreecommitdiffstats
path: root/src/document_tree
diff options
context:
space:
mode:
authorPhilipp A2018-10-29 15:12:55 +0100
committerPhilipp A2018-10-29 15:12:55 +0100
commit07ada348558204e1736e29056eba6d73b2084cc2 (patch)
treeaaa102c1282572824dffb8fc0c873816177a1a83 /src/document_tree
parent928da429a61fd98891f8b59fedb5f2de45dbc45d (diff)
downloadrust-rst-07ada348558204e1736e29056eba6d73b2084cc2.tar.bz2
Rust 2018
Diffstat (limited to 'src/document_tree')
-rw-r--r--src/document_tree/element_categories.rs4
1 files changed, 2 insertions, 2 deletions
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<C> {
- fn with_children(Vec<C>) -> Self;
- fn children(& self) -> &Vec<C>;
+ fn with_children(children: Vec<C>) -> Self;
+ fn children(&self) -> &Vec<C>;
fn children_mut(&mut self) -> &mut Vec<C>;
fn append_child<R: Into<C>>(&mut self, child: R) {
self.children_mut().push(child.into());