Skip to content

Commit 02559c3

Browse files
committed
reformatted
1 parent 13ed93d commit 02559c3

File tree

2 files changed

+25
-16
lines changed

2 files changed

+25
-16
lines changed

Diff for: rustfmt.toml

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1+
edition = "2021"
12
max_width = 120
2-
indent_style = "Visual"
3+
#indent_style = "Visual"
34
#fn_call_width = 120
45
reorder_imports = true
5-
reorder_imports_in_group = true
6-
reorder_imported_names = true
6+
reorder_modules = true
7+
#reorder_imports_in_group = true
8+
#reorder_imported_names = true
79
condense_wildcard_suffixes = true
810
#fn_args_layout = "Visual"
911
#fn_call_style = "Visual"
1012
#chain_indent = "Visual"
1113
normalize_comments = true
1214
use_try_shorthand = true
15+
reorder_impl_items = true
16+
#use_small_heuristics = "Max"
17+
imports_layout = "HorizontalVertical"
18+
imports_granularity = "Crate"

Diff for: src/lib.rs

+16-13
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,22 @@
4242
//! }
4343
//! ```
4444
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+
};
5455

5556
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+
};
5861
#[cfg(feature = "case-insensitive")]
5962
use unicase::UniCase;
6063

@@ -996,17 +999,17 @@ impl<'a> Ini {
996999
}
9971000

9981001
impl<'a> IntoIterator for &'a Ini {
999-
type Item = (Option<&'a str>, &'a Properties);
10001002
type IntoIter = SectionIter<'a>;
1003+
type Item = (Option<&'a str>, &'a Properties);
10011004

10021005
fn into_iter(self) -> Self::IntoIter {
10031006
self.iter()
10041007
}
10051008
}
10061009

10071010
impl<'a> IntoIterator for &'a mut Ini {
1008-
type Item = (Option<&'a str>, &'a mut Properties);
10091011
type IntoIter = SectionIterMut<'a>;
1012+
type Item = (Option<&'a str>, &'a mut Properties);
10101013

10111014
fn into_iter(self) -> Self::IntoIter {
10121015
self.iter_mut()

0 commit comments

Comments
 (0)