|
42 | 42 | //! }
|
43 | 43 | //! ```
|
44 | 44 |
|
45 |
| -use std::char; |
46 |
| -use std::error; |
47 |
| -use std::fmt::{self, Display}; |
48 |
| -use std::fs::{File, OpenOptions}; |
49 |
| -use std::io::{self, Read, Write}; |
50 |
| -use std::io::{Seek, SeekFrom}; |
51 |
| -use std::ops::{Index, IndexMut}; |
52 |
| -use std::path::Path; |
53 |
| -use std::str::Chars; |
| 45 | +use std::{ |
| 46 | + char, |
| 47 | + error, |
| 48 | + fmt::{self, Display}, |
| 49 | + fs::{File, OpenOptions}, |
| 50 | + io::{self, Read, Seek, SeekFrom, Write}, |
| 51 | + ops::{Index, IndexMut}, |
| 52 | + path::Path, |
| 53 | + str::Chars, |
| 54 | +}; |
54 | 55 |
|
55 | 56 | use cfg_if::cfg_if;
|
56 |
| -use ordered_multimap::list_ordered_multimap::{Entry, Iter, IterMut, OccupiedEntry, VacantEntry}; |
57 |
| -use ordered_multimap::ListOrderedMultimap; |
| 57 | +use ordered_multimap::{ |
| 58 | + list_ordered_multimap::{Entry, Iter, IterMut, OccupiedEntry, VacantEntry}, |
| 59 | + ListOrderedMultimap, |
| 60 | +}; |
58 | 61 | #[cfg(feature = "case-insensitive")]
|
59 | 62 | use unicase::UniCase;
|
60 | 63 |
|
@@ -996,17 +999,17 @@ impl<'a> Ini {
|
996 | 999 | }
|
997 | 1000 |
|
998 | 1001 | impl<'a> IntoIterator for &'a Ini {
|
999 |
| - type Item = (Option<&'a str>, &'a Properties); |
1000 | 1002 | type IntoIter = SectionIter<'a>;
|
| 1003 | + type Item = (Option<&'a str>, &'a Properties); |
1001 | 1004 |
|
1002 | 1005 | fn into_iter(self) -> Self::IntoIter {
|
1003 | 1006 | self.iter()
|
1004 | 1007 | }
|
1005 | 1008 | }
|
1006 | 1009 |
|
1007 | 1010 | impl<'a> IntoIterator for &'a mut Ini {
|
1008 |
| - type Item = (Option<&'a str>, &'a mut Properties); |
1009 | 1011 | type IntoIter = SectionIterMut<'a>;
|
| 1012 | + type Item = (Option<&'a str>, &'a mut Properties); |
1010 | 1013 |
|
1011 | 1014 | fn into_iter(self) -> Self::IntoIter {
|
1012 | 1015 | self.iter_mut()
|
|
0 commit comments