We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 635e638 commit 540bcc5Copy full SHA for 540bcc5
1 file changed
tokio-postgres/src/builder.rs
@@ -1,4 +1,4 @@
1
-use std::collections::hash_map::{self, HashMap};
+use std::collections::HashMap;
2
use std::iter;
3
#[cfg(all(feature = "runtime", unix))]
4
use std::path::{Path, PathBuf};
@@ -171,23 +171,6 @@ impl FromStr for Builder {
171
}
172
173
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
191
struct Parser<'a> {
192
s: &'a str,
193
it: iter::Peekable<str::CharIndices<'a>>,
0 commit comments