Remove now unnecessary explicit dyn casts
Rust-analyzer used to not infer this, seems like now it does.
This commit is contained in:
parent
ed9ee2c188
commit
535ae1260e
|
@ -298,8 +298,7 @@ impl Plugin for Crisp {
|
||||||
const SAMPLE_ACCURATE_AUTOMATION: bool = true;
|
const SAMPLE_ACCURATE_AUTOMATION: bool = true;
|
||||||
|
|
||||||
fn params(&self) -> Arc<dyn Params> {
|
fn params(&self) -> Arc<dyn Params> {
|
||||||
// The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it
|
self.params.clone()
|
||||||
self.params.clone() as Arc<dyn Params>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn editor(&self) -> Option<Box<dyn Editor>> {
|
fn editor(&self) -> Option<Box<dyn Editor>> {
|
||||||
|
|
|
@ -237,8 +237,7 @@ impl Plugin for Diopser {
|
||||||
const SAMPLE_ACCURATE_AUTOMATION: bool = true;
|
const SAMPLE_ACCURATE_AUTOMATION: bool = true;
|
||||||
|
|
||||||
fn params(&self) -> Arc<dyn Params> {
|
fn params(&self) -> Arc<dyn Params> {
|
||||||
// The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it
|
self.params.clone()
|
||||||
self.params.clone() as Arc<dyn Params>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn editor(&self) -> Option<Box<dyn Editor>> {
|
fn editor(&self) -> Option<Box<dyn Editor>> {
|
||||||
|
|
|
@ -115,8 +115,7 @@ impl Plugin for Gain {
|
||||||
const SAMPLE_ACCURATE_AUTOMATION: bool = true;
|
const SAMPLE_ACCURATE_AUTOMATION: bool = true;
|
||||||
|
|
||||||
fn params(&self) -> Arc<dyn Params> {
|
fn params(&self) -> Arc<dyn Params> {
|
||||||
// The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it
|
self.params.clone()
|
||||||
self.params.clone() as Arc<dyn Params>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn accepts_bus_config(&self, config: &BusConfig) -> bool {
|
fn accepts_bus_config(&self, config: &BusConfig) -> bool {
|
||||||
|
|
|
@ -34,8 +34,7 @@ impl Plugin for MidiInverter {
|
||||||
const SAMPLE_ACCURATE_AUTOMATION: bool = true;
|
const SAMPLE_ACCURATE_AUTOMATION: bool = true;
|
||||||
|
|
||||||
fn params(&self) -> Arc<dyn Params> {
|
fn params(&self) -> Arc<dyn Params> {
|
||||||
// The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it
|
self.params.clone()
|
||||||
self.params.clone() as Arc<dyn Params>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn process(
|
fn process(
|
||||||
|
|
|
@ -112,8 +112,7 @@ impl Plugin for Sine {
|
||||||
const SAMPLE_ACCURATE_AUTOMATION: bool = true;
|
const SAMPLE_ACCURATE_AUTOMATION: bool = true;
|
||||||
|
|
||||||
fn params(&self) -> Arc<dyn Params> {
|
fn params(&self) -> Arc<dyn Params> {
|
||||||
// The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it
|
self.params.clone()
|
||||||
self.params.clone() as Arc<dyn Params>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn accepts_bus_config(&self, config: &BusConfig) -> bool {
|
fn accepts_bus_config(&self, config: &BusConfig) -> bool {
|
||||||
|
|
|
@ -96,8 +96,7 @@ impl Plugin for Stft {
|
||||||
const SAMPLE_ACCURATE_AUTOMATION: bool = true;
|
const SAMPLE_ACCURATE_AUTOMATION: bool = true;
|
||||||
|
|
||||||
fn params(&self) -> Arc<dyn Params> {
|
fn params(&self) -> Arc<dyn Params> {
|
||||||
// The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it
|
self.params.clone()
|
||||||
self.params.clone() as Arc<dyn Params>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn accepts_bus_config(&self, config: &BusConfig) -> bool {
|
fn accepts_bus_config(&self, config: &BusConfig) -> bool {
|
||||||
|
|
|
@ -124,8 +124,7 @@ impl Plugin for LoudnessWarWinner {
|
||||||
const DEFAULT_NUM_OUTPUTS: u32 = 2;
|
const DEFAULT_NUM_OUTPUTS: u32 = 2;
|
||||||
|
|
||||||
fn params(&self) -> Arc<dyn Params> {
|
fn params(&self) -> Arc<dyn Params> {
|
||||||
// The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it
|
self.params.clone()
|
||||||
self.params.clone() as Arc<dyn Params>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn accepts_bus_config(&self, config: &BusConfig) -> bool {
|
fn accepts_bus_config(&self, config: &BusConfig) -> bool {
|
||||||
|
|
|
@ -167,8 +167,7 @@ impl Plugin for PubertySimulator {
|
||||||
const DEFAULT_NUM_OUTPUTS: u32 = 2;
|
const DEFAULT_NUM_OUTPUTS: u32 = 2;
|
||||||
|
|
||||||
fn params(&self) -> Arc<dyn Params> {
|
fn params(&self) -> Arc<dyn Params> {
|
||||||
// The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it
|
self.params.clone()
|
||||||
self.params.clone() as Arc<dyn Params>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn accepts_bus_config(&self, config: &BusConfig) -> bool {
|
fn accepts_bus_config(&self, config: &BusConfig) -> bool {
|
||||||
|
|
Loading…
Reference in a new issue