mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-22 18:22:00 +00:00
chore: clear the rustc 1.96 clippy lint that fails CI
Unrelated to this branch's change; main already fails clippy --all-targets -- -D warnings without it, which is what failed the Windows integration job here. One clippy::nonminimal_bool site in canvas.rs, taking clippy's own rewrite: the negation stays outside, so the is_finite guards and their NaN behaviour are unchanged. A sweep of all 30 workspace members found no other site.
This commit is contained in:
1 parent
8c12449819
commit
f8cd3e7982
1 file changed
+1
-1
@@ -4354,7 +4354,7 @@ pub(crate) fn marching_ants_lines(painter: &egui::Painter, lines: impl Iterator<
|
||||
};
|
||||
for (pa, pb) in lines {
|
||||
// A transformed outline can land anywhere, or nowhere (a point on a Distort's horizon).
|
||||
if !(pa.is_finite() && pb.is_finite()) || !clip.intersects(Rect::from_two_pos(pa, pb).expand(1.0)) {
|
||||
if !(pa.is_finite() && pb.is_finite() && clip.intersects(Rect::from_two_pos(pa, pb).expand(1.0))) {
|
||||
continue;
|
||||
}
|
||||
let (pa, pb) = if pa.distance(pb) > LONG {
|
||||
|
||||
Reference in new issue
Block a user