Rollup merge of #93116 - rust-lang:oli-obk-patch-1, r=jackh726
Simplify use of `map_or`
This commit is contained in:
commit
2ecbc4b49d
1 changed files with 1 additions and 1 deletions
|
@ -418,7 +418,7 @@ impl BasicCoverageBlockData {
|
|||
pub fn take_edge_counters(
|
||||
&mut self,
|
||||
) -> Option<impl Iterator<Item = (BasicCoverageBlock, CoverageKind)>> {
|
||||
self.edge_from_bcbs.take().map_or(None, |m| Some(m.into_iter()))
|
||||
self.edge_from_bcbs.take().map(|m| m.into_iter())
|
||||
}
|
||||
|
||||
pub fn id(&self) -> String {
|
||||
|
|
Loading…
Add table
Reference in a new issue