From 9379ba1267e19c1cee2b52eec2e83d7b2786a697 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sat, 3 Oct 2026 09:14:38 -0400 Subject: [PATCH] M13.10: clippy (FRAC_1_SQRT_2 in the Colorama test) Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/tests/ui_fx_editors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-egui/tests/ui_fx_editors.rs b/crates/ui-egui/tests/ui_fx_editors.rs index ef72d86a..331df879 100644 --- a/crates/ui-egui/tests/ui_fx_editors.rs +++ b/crates/ui-egui/tests/ui_fx_editors.rs @@ -180,7 +180,7 @@ fn colorama_output_cycle_wheel() { // Clicking the ring adds a stop: the palette becomes Custom with seven stops. let w = rect(&h, &format!("{pre}.wheel")); let mid = w.width() / 2.0 - 20.0 - 9.0; - let ring = pos2(w.center().x + mid * 0.7071, w.center().y + mid * 0.7071); + let ring = pos2(w.center().x + mid * std::f32::consts::FRAC_1_SQRT_2, w.center().y + mid * std::f32::consts::FRAC_1_SQRT_2); click_n(&mut h, ring, 1); assert_eq!(value(&h, l, fx, "outputCycle/usePresetPalette"), KV::Enum(8)); let pal = s(value(&h, l, fx, "outputCycle/palette"));