diff options
| author | Philipp A | 2018-10-29 15:12:55 +0100 |
|---|---|---|
| committer | Philipp A | 2018-10-29 15:12:55 +0100 |
| commit | 07ada348558204e1736e29056eba6d73b2084cc2 (patch) | |
| tree | aaa102c1282572824dffb8fc0c873816177a1a83 /src/document_tree | |
| parent | 928da429a61fd98891f8b59fedb5f2de45dbc45d (diff) | |
| download | rust-rst-07ada348558204e1736e29056eba6d73b2084cc2.tar.bz2 | |
Rust 2018
Diffstat (limited to 'src/document_tree')
| -rw-r--r-- | src/document_tree/element_categories.rs | 4 |
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()); |
