We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 277e49b commit ad3340aCopy full SHA for ad3340a
src/arrayformat.rs
@@ -90,23 +90,23 @@ fn format_with_overflow(
90
// no-op
91
} else if length <= limit {
92
fmt_elem(f, 0)?;
93
- (1..length).try_for_each(|i| {
+ for i in 1..length {
94
f.write_str(separator)?;
95
- fmt_elem(f, i)
96
- })?;
+ fmt_elem(f, i)?
+ }
97
} else {
98
let edge = limit / 2;
99
100
- (1..edge).try_for_each(|i| {
+ for i in 1..edge {
101
102
103
+ fmt_elem(f, i)?;
104
105
f.write_str(ellipsis)?;
106
- (length - edge..length).try_for_each(|i| {
+ for i in length - edge..length {
107
108
109
110
}
111
Ok(())
112
0 commit comments