mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-22 10:23:16 +01:00
Flatten Transparency: use is_multiple_of (clippy)
This commit is contained in:
1 parent
e505bccd5e
commit
6b30867eba
1 file changed
+1
-1
@@ -176,7 +176,7 @@ pub(super) fn overlapping(bounds: &[Option<Rect>]) -> Result<Vec<Vec<usize>>, ve
|
||||
stack.push((1, 0, size));
|
||||
while let Some((node, lo, hi)) = stack.pop() {
|
||||
work += 1;
|
||||
if work % 4096 == 0 {
|
||||
if work.is_multiple_of(4096) {
|
||||
vectorcraft_doc::cancel::check()?;
|
||||
}
|
||||
if lo >= below || low[node] < b.y0 {
|
||||
|
||||
Reference in new issue
Block a user