Skip to content

Commit f983f67

Browse files
committed
Use field init shorthand
1 parent 89f3a0d commit f983f67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/intersperse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub fn intersperse_with<I, ElemF>(iter: I, elt: ElemF) -> IntersperseWith<I, Ele
6262
let mut iter = iter.fuse();
6363
IntersperseWith {
6464
peek: iter.next(),
65-
iter: iter,
65+
iter,
6666
element: elt,
6767
}
6868
}

src/tuple_impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ pub fn circular_tuple_windows<I, T>(iter: I) -> CircularTupleWindows<I, T>
212212
let iter = tuple_windows(iter.cycle()).take(len);
213213

214214
CircularTupleWindows {
215-
iter: iter,
215+
iter,
216216
phantom_data: PhantomData{}
217217
}
218218
}

0 commit comments

Comments
 (0)