Run clippy --fix
for unnecessary_map_or
lint
This commit is contained in:
parent
39dc268459
commit
264fa0fc54
39 changed files with 61 additions and 67 deletions
|
@ -258,7 +258,7 @@ impl<I: Idx> IntervalSet<I> {
|
|||
}
|
||||
current = Some(*end);
|
||||
}
|
||||
current.map_or(true, |x| x < self.domain as u32)
|
||||
current.is_none_or(|x| x < self.domain as u32)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue