diff options
Diffstat (limited to 'src/element.rs')
-rw-r--r-- | src/element.rs | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/element.rs b/src/element.rs index b954e2d..55b860f 100644 --- a/src/element.rs +++ b/src/element.rs @@ -1,18 +1,13 @@ -// elements resemble a final tree, including inherited namespace information - -#![feature(drain_filter)] - +/// elements resemble a final tree, including inherited namespace information use std::{ - collections::{vec_deque, HashMap, HashSet, VecDeque}, - convert::Infallible, + collections::{HashMap, HashSet, VecDeque}, str::FromStr, }; -use tracing::debug; +use tracing::trace; use crate::{ error::{DeserializeError, Error}, - xml::{self, parsers_complete::Parser, Attribute}, Result, }; @@ -330,16 +325,16 @@ impl Element { let mut children = Vec::new(); loop { let child = self.content.front(); - debug!("child: {:?}", child); + trace!("child: {:?}", child); if let Some(child) = child { match child { Content::Element(element) => { if let Ok(child) = <T as FromElement>::from_element(element.clone()) { - debug!("parsed child"); + trace!("parsed child"); children.push(child); self.content.pop_front(); } else { - debug!("failed to parse child"); + trace!("failed to parse child"); return Ok(children); } } |