mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-09 07:16:52 +00:00
fix(tools): clippy-friendly scanline bound
This commit is contained in:
committed by
bflatastic
parent
1597bc378b
commit
ca1c317644
@@ -454,7 +454,7 @@ pub fn hatch(path: &BezPath, gap: f64) -> BezPath {
|
||||
// a 400th of the height, so 402 lines cover it.
|
||||
for i in 0..402u32 {
|
||||
let y = start + f64::from(i) * gap;
|
||||
if !(y < y1) {
|
||||
if y.partial_cmp(&y1) != Some(std::cmp::Ordering::Less) {
|
||||
break;
|
||||
}
|
||||
xs.clear();
|
||||
|
||||
Reference in New Issue
Block a user