From 540bcc5556eef6eb900627fe8ddb814767d1a62d Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Fri, 28 Dec 2018 13:55:09 -0500 Subject: [PATCH] Remove unused type --- tokio-postgres/src/builder.rs | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/tokio-postgres/src/builder.rs b/tokio-postgres/src/builder.rs index ce3792fc..91019156 100644 --- a/tokio-postgres/src/builder.rs +++ b/tokio-postgres/src/builder.rs @@ -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>,