diff options
Diffstat (limited to 'src/reader.rs')
-rw-r--r-- | src/reader.rs | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/reader.rs b/src/reader.rs index 24cc098..824446a 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -1,14 +1,10 @@ use circular::Buffer; -use futures::{FutureExt, Stream}; use nom::Err; use std::{ - collections::{hash_set, BTreeMap, HashMap, HashSet, VecDeque}, - future::Future, - path::Prefix, - pin::{pin, Pin}, - str::{self, FromStr}, + collections::{HashMap, HashSet, VecDeque}, + str, }; -use tokio::io::{AsyncBufRead, AsyncBufReadExt, AsyncRead, AsyncReadExt}; +use tokio::io::{AsyncRead, AsyncReadExt}; use tracing::debug; use crate::{ @@ -732,11 +728,11 @@ impl<R> Reader<R> { char_data.map(|char_data| text.as_mut().map(|s| s.push_str(*char_data))); } // TODO: is this important? - xml::ContentItem::PI(pi) => { + xml::ContentItem::PI(_pi) => { char_data.map(|char_data| text.as_mut().map(|s| s.push_str(*char_data))); } // TODO: comments? - xml::ContentItem::Comment(comment) => { + xml::ContentItem::Comment(_comment) => { char_data.map(|char_data| text.as_mut().map(|s| s.push_str(*char_data))); } } |