diff --git a/plugins/crisp/src/lib.rs b/plugins/crisp/src/lib.rs index 07574a2d..003f7a32 100644 --- a/plugins/crisp/src/lib.rs +++ b/plugins/crisp/src/lib.rs @@ -308,7 +308,8 @@ impl Plugin for Crisp { const SAMPLE_ACCURATE_AUTOMATION: bool = true; fn params(&self) -> Arc { - self.params.clone() + // The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it + self.params.clone() as Arc } fn editor(&self) -> Option> { diff --git a/plugins/diopser/src/lib.rs b/plugins/diopser/src/lib.rs index 5c4243b9..30c7945e 100644 --- a/plugins/diopser/src/lib.rs +++ b/plugins/diopser/src/lib.rs @@ -240,7 +240,8 @@ impl Plugin for Diopser { const SAMPLE_ACCURATE_AUTOMATION: bool = true; fn params(&self) -> Arc { - self.params.clone() + // The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it + self.params.clone() as Arc } fn editor(&self) -> Option> { diff --git a/plugins/examples/gain/src/lib.rs b/plugins/examples/gain/src/lib.rs index 08a753f0..1b3713e1 100644 --- a/plugins/examples/gain/src/lib.rs +++ b/plugins/examples/gain/src/lib.rs @@ -112,7 +112,8 @@ impl Plugin for Gain { const SAMPLE_ACCURATE_AUTOMATION: bool = true; fn params(&self) -> Arc { - self.params.clone() + // The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it + self.params.clone() as Arc } 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 b6a6af6c..6b447c81 100644 --- a/plugins/examples/midi-inverter/src/lib.rs +++ b/plugins/examples/midi-inverter/src/lib.rs @@ -34,7 +34,7 @@ impl Plugin for MidiInverter { const SAMPLE_ACCURATE_AUTOMATION: bool = true; fn params(&self) -> Arc { - // The explicit cast is not needed, Rust Analyzer just doesn't get it otherwise + // The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it self.params.clone() as Arc } diff --git a/plugins/examples/sine/src/lib.rs b/plugins/examples/sine/src/lib.rs index 5473d565..efb048c5 100644 --- a/plugins/examples/sine/src/lib.rs +++ b/plugins/examples/sine/src/lib.rs @@ -112,7 +112,8 @@ impl Plugin for Sine { const SAMPLE_ACCURATE_AUTOMATION: bool = true; fn params(&self) -> Arc { - self.params.clone() + // The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it + self.params.clone() as Arc } 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 fd7de2af..535ed8ae 100644 --- a/plugins/examples/stft/src/lib.rs +++ b/plugins/examples/stft/src/lib.rs @@ -90,7 +90,8 @@ impl Plugin for Stft { const SAMPLE_ACCURATE_AUTOMATION: bool = true; fn params(&self) -> Arc { - self.params.clone() + // The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it + self.params.clone() as Arc } 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 acff5fe0..04dbae26 100644 --- a/plugins/puberty_simulator/src/lib.rs +++ b/plugins/puberty_simulator/src/lib.rs @@ -150,7 +150,8 @@ impl Plugin for PubertySimulator { const DEFAULT_NUM_OUTPUTS: u32 = 2; fn params(&self) -> Arc { - self.params.clone() + // The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it + self.params.clone() as Arc } fn accepts_bus_config(&self, config: &BusConfig) -> bool {