cargo fmt

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2023-12-04 18:41:02 +09:00
parent c3307388aa
commit d42f4817e0

View file

@ -386,8 +386,7 @@ impl Speaker {
let temp = s.t_coil_hyst.max(s.t_magnet_hyst);
let reduction =
(temp - (self.t_limit - self.g.t_window)) / self.g.t_window;
let reduction = (temp - (self.t_limit - self.g.t_window)) / self.g.t_window;
let gain = s.min_gain * reduction.max(0.);
s.gain = gain;