Skip to content

Commit a16c01c

Browse files
hellow554phimuemue
authored andcommitted
fix clippy::manual_map
1 parent 501783e commit a16c01c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/adaptors/mod.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -327,12 +327,7 @@ impl<I, J> Iterator for Product<I, J>
327327
}
328328
Some(x) => x
329329
};
330-
match self.a_cur {
331-
None => None,
332-
Some(ref a) => {
333-
Some((a.clone(), elt_b))
334-
}
335-
}
330+
self.a_cur.as_ref().map(|a| (a.clone(), elt_b))
336331
}
337332

338333
fn size_hint(&self) -> (usize, Option<usize>) {

0 commit comments

Comments
 (0)