diff --git a/plugins/crisp/src/lib.rs b/plugins/crisp/src/lib.rs index d199b01a..d771df60 100644 --- a/plugins/crisp/src/lib.rs +++ b/plugins/crisp/src/lib.rs @@ -298,8 +298,7 @@ impl Plugin for Crisp { const SAMPLE_ACCURATE_AUTOMATION: bool = true; fn params(&self) -> Arc { - // The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it - self.params.clone() as Arc + self.params.clone() } fn editor(&self) -> Option> { diff --git a/plugins/diopser/src/lib.rs b/plugins/diopser/src/lib.rs index 4f55a2d3..733c1e54 100644 --- a/plugins/diopser/src/lib.rs +++ b/plugins/diopser/src/lib.rs @@ -237,8 +237,7 @@ impl Plugin for Diopser { const SAMPLE_ACCURATE_AUTOMATION: bool = true; fn params(&self) -> Arc { - // The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it - self.params.clone() as Arc + self.params.clone() } fn editor(&self) -> Option> { diff --git a/plugins/examples/gain/src/lib.rs b/plugins/examples/gain/src/lib.rs index dabb4f27..a43357d4 100644 --- a/plugins/examples/gain/src/lib.rs +++ b/plugins/examples/gain/src/lib.rs @@ -115,8 +115,7 @@ impl Plugin for Gain { const SAMPLE_ACCURATE_AUTOMATION: bool = true; fn params(&self) -> Arc { - // The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it - self.params.clone() as Arc + self.params.clone() } fn accepts_bus_config(&self, config: &BusConfig) -> bool { diff --git a/plugins/examples/midi_inverter/src/lib.rs b/plugins/examples/midi_inverter/src/lib.rs index 6b447c81..4179affb 100644 --- a/plugins/examples/midi_inverter/src/lib.rs +++ b/plugins/examples/midi_inverter/src/lib.rs @@ -34,8 +34,7 @@ impl Plugin for MidiInverter { const SAMPLE_ACCURATE_AUTOMATION: bool = true; fn params(&self) -> Arc { - // The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it - self.params.clone() as Arc + self.params.clone() } fn process( diff --git a/plugins/examples/sine/src/lib.rs b/plugins/examples/sine/src/lib.rs index 642d45ce..44a57555 100644 --- a/plugins/examples/sine/src/lib.rs +++ b/plugins/examples/sine/src/lib.rs @@ -112,8 +112,7 @@ impl Plugin for Sine { const SAMPLE_ACCURATE_AUTOMATION: bool = true; fn params(&self) -> Arc { - // The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it - self.params.clone() as Arc + self.params.clone() } fn accepts_bus_config(&self, config: &BusConfig) -> bool { diff --git a/plugins/examples/stft/src/lib.rs b/plugins/examples/stft/src/lib.rs index 98645957..6c6185d7 100644 --- a/plugins/examples/stft/src/lib.rs +++ b/plugins/examples/stft/src/lib.rs @@ -96,8 +96,7 @@ impl Plugin for Stft { const SAMPLE_ACCURATE_AUTOMATION: bool = true; fn params(&self) -> Arc { - // The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it - self.params.clone() as Arc + self.params.clone() } fn accepts_bus_config(&self, config: &BusConfig) -> bool { diff --git a/plugins/loudness_war_winner/src/lib.rs b/plugins/loudness_war_winner/src/lib.rs index 2852bb4f..779c4db0 100644 --- a/plugins/loudness_war_winner/src/lib.rs +++ b/plugins/loudness_war_winner/src/lib.rs @@ -124,8 +124,7 @@ impl Plugin for LoudnessWarWinner { const DEFAULT_NUM_OUTPUTS: u32 = 2; fn params(&self) -> Arc { - // The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it - self.params.clone() as Arc + self.params.clone() } fn accepts_bus_config(&self, config: &BusConfig) -> bool { diff --git a/plugins/puberty_simulator/src/lib.rs b/plugins/puberty_simulator/src/lib.rs index cfd87f3a..574198c0 100644 --- a/plugins/puberty_simulator/src/lib.rs +++ b/plugins/puberty_simulator/src/lib.rs @@ -167,8 +167,7 @@ impl Plugin for PubertySimulator { const DEFAULT_NUM_OUTPUTS: u32 = 2; fn params(&self) -> Arc { - // The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it - self.params.clone() as Arc + self.params.clone() } fn accepts_bus_config(&self, config: &BusConfig) -> bool {