Skip to content

Commit 152f500

Browse files
committed
refactor: removing redundant variables
1 parent f2bb202 commit 152f500

File tree

1 file changed

+1
-2
lines changed
  • library/core/src/iter/adapters

1 file changed

+1
-2
lines changed

library/core/src/iter/adapters/zip.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,12 @@ where
113113
// of `next_back` does this, otherwise we will break the restriction
114114
// on calls to `self.next_back()` after calling `get_unchecked()`.
115115
if sz_a != sz_b {
116-
let sz_a = self.a.size();
117116
if a_side_effect && sz_a > self.len {
118117
for _ in 0..sz_a - cmp::max(self.len, self.index) {
119118
self.a.next_back();
120119
}
121120
}
122-
let sz_b = self.b.size();
121+
123122
if b_side_effect && sz_b > self.len {
124123
for _ in 0..sz_b - self.len {
125124
self.b.next_back();

0 commit comments

Comments
 (0)