From 0d0e7e68615d6dc977be1a0de2726ffe0c3ee546 Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Mon, 3 Aug 2026 11:15:48 +0200 Subject: [PATCH] style(host/pad-audio): drop a redundant f32 cast in the tone devtest clippy's `unnecessary_cast` fires on it, which fails CI's -D warnings. Co-Authored-By: Claude Opus 5 (1M context) --- crates/punktfunk-host/src/audio/windows/pad_endpoint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/punktfunk-host/src/audio/windows/pad_endpoint.rs b/crates/punktfunk-host/src/audio/windows/pad_endpoint.rs index adc70909..374ac6ca 100644 --- a/crates/punktfunk-host/src/audio/windows/pad_endpoint.rs +++ b/crates/punktfunk-host/src/audio/windows/pad_endpoint.rs @@ -1615,7 +1615,7 @@ pub(crate) fn render_test_tone(endpoint_id: &str, seconds: u32, hz: f32) -> Resu continue; } for f in 0..n { - let s = (phase.sin() * 0.5) as f32; + let s = phase.sin() * 0.5; phase += step; if phase >= std::f32::consts::TAU { phase -= std::f32::consts::TAU;