1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 22:00:03 -04:00

Enable more clippy lints (#7418)

More is more!
This commit is contained in:
Emil Ernerfeldt
2025-08-05 19:47:26 +02:00
committed by GitHub
parent e9afd3c52d
commit ef039aa566
13 changed files with 38 additions and 16 deletions

View File

@@ -613,6 +613,8 @@ struct FlatteningParameters {
impl FlatteningParameters {
// https://raphlinus.github.io/graphics/curves/2019/12/23/flatten-quadbez.html
pub fn from_curve(curve: &QuadraticBezierShape, tolerance: f32) -> Self {
#![expect(clippy::useless_let_if_seq)]
// Map the quadratic bézier segment to y = x^2 parabola.
let from = curve.points[0];
let ctrl = curve.points[1];