From 9f34c0d0c02d849df8cd5515c3bb1e229a59615e Mon Sep 17 00:00:00 2001 From: Jonathan Tran Date: Tue, 24 Jun 2025 18:51:49 -0400 Subject: [PATCH] Fix clippy lints --- rust/kcl-lib/src/std/sketch.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rust/kcl-lib/src/std/sketch.rs b/rust/kcl-lib/src/std/sketch.rs index 42a5dce75..107c1ab7b 100644 --- a/rust/kcl-lib/src/std/sketch.rs +++ b/rust/kcl-lib/src/std/sketch.rs @@ -1878,8 +1878,8 @@ pub(crate) async fn inner_elliptic( let start_angle = Angle::from_degrees(angle_start.to_degrees()); let end_angle = Angle::from_degrees(angle_end.to_degrees()); let to = [ - center_u[0] + major_radius.to_length_units(from.units) * end_angle.to_radians().cos(), - center_u[1] + minor_radius.to_length_units(from.units) * end_angle.to_radians().sin(), + center_u[0] + major_radius.to_length_units(from.units) * libm::cos(end_angle.to_radians()), + center_u[1] + minor_radius.to_length_units(from.units) * libm::sin(end_angle.to_radians()), ]; exec_state @@ -2157,6 +2157,7 @@ fn parabolic_tangent(point: Point2d, a: f64, b: f64) -> [f64; 2] { (1.0, 2.0 * a * point.x + b).into() } +#[allow(clippy::too_many_arguments)] pub(crate) async fn inner_parabolic( sketch: Sketch, coefficients: Option<[TyF64; 3]>,