mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-25 02:07:09 -06:00
With Rust 1.95, the workspace's rust-version, cargo clippy --workspace --all-targets -- -D warnings stopped at vectorcraft-effects: clippy 1.95 reports nonminimal_bool on the parameter and pixel-size guards of Cutout, Poster Edges and Neon Glow, and on the size check in Rasterize::compose (Effect › Rasterize). Clippy 1.99 does not report them. Each check now has the form clippy suggests, one !(a && b && ...) in place of !a || !(b && c) (!a || !b || !(c && d) in compose). The operands and their order are unchanged, so the filters and compose return early in the same cases as before. New tests check that the three filters leave the art unchanged for a pixel size of 0, -1, NaN or infinity and for non-finite parameters, and that compose leaves the raster unchanged when a buffer's length does not match its size or the image's area has no positive width or height.