mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-14 19:27:05 -04:00
M13.10: clippy (FRAC_1_SQRT_2 in the Colorama test)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
5c54ccd8d0
commit
9379ba1267
1 file changed
+1
-1
@@ -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"));
|
||||
|
||||
Reference in new issue
Block a user