Remove unused type

This commit is contained in:
Steven Fackler
2018-12-28 13:55:09 -05:00
parent 635e6381b3
commit 540bcc5556

View File

@@ -1,4 +1,4 @@
use std::collections::hash_map::{self, HashMap};
use std::collections::HashMap;
use std::iter;
#[cfg(all(feature = "runtime", unix))]
use std::path::{Path, PathBuf};
@@ -171,23 +171,6 @@ impl FromStr for Builder {
}
}
#[derive(Debug, Clone)]
pub struct Iter<'a>(hash_map::Iter<'a, String, String>);
impl<'a> Iterator for Iter<'a> {
type Item = (&'a str, &'a str);
fn next(&mut self) -> Option<(&'a str, &'a str)> {
self.0.next().map(|(k, v)| (&**k, &**v))
}
}
impl<'a> ExactSizeIterator for Iter<'a> {
fn len(&self) -> usize {
self.0.len()
}
}
struct Parser<'a> {
s: &'a str,
it: iter::Peekable<str::CharIndices<'a>>,