Skip to content

Commit 540bcc5

Browse files
committed
Remove unused type
1 parent 635e638 commit 540bcc5

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

tokio-postgres/src/builder.rs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use std::collections::hash_map::{self, HashMap};
1+
use std::collections::HashMap;
22
use std::iter;
33
#[cfg(all(feature = "runtime", unix))]
44
use std::path::{Path, PathBuf};
@@ -171,23 +171,6 @@ impl FromStr for Builder {
171171
}
172172
}
173173

174-
#[derive(Debug, Clone)]
175-
pub struct Iter<'a>(hash_map::Iter<'a, String, String>);
176-
177-
impl<'a> Iterator for Iter<'a> {
178-
type Item = (&'a str, &'a str);
179-
180-
fn next(&mut self) -> Option<(&'a str, &'a str)> {
181-
self.0.next().map(|(k, v)| (&**k, &**v))
182-
}
183-
}
184-
185-
impl<'a> ExactSizeIterator for Iter<'a> {
186-
fn len(&self) -> usize {
187-
self.0.len()
188-
}
189-
}
190-
191174
struct Parser<'a> {
192175
s: &'a str,
193176
it: iter::Peekable<str::CharIndices<'a>>,

0 commit comments

Comments
 (0)